签到

05月05日
尚未签到

共有回帖数 0

    孤单的狼

    等级:
    为什么controller.isGrounded总是false。
    void Start () {
    Controller = GetComponentCharacterController ();
    SoliderTransform = transform.FindChild ("Solider");
    FootTransform = transform.FindChild ("Foot");
    MySoliderAnimation=SoliderTransform.GetComponentAnimationController();
    MyFootAnimation=SoliderTransform.GetComponentAnimationController();
    }
    void Update () {
    print(Controller.isGrounded.ToString());
    if (Controller.isGrounded) {
    print("isground");
    if (Input.GetKeyDown (KeyCode.A))
    ......
    }


    人物已经添加了CharacterController,但是为什么controller.isGrounded总是false。
    求解释,我是新手最好有详细解答。谢谢!!!!!


    楼主 2015-12-26 17:11 回复

共有回帖数 0
  • 回 帖
  • 表情 图片 视频
  • 发表

登录直线网账号

Copyright © 2010~2015 直线网 版权所有,All Rights Reserved.沪ICP备10039589号 意见反馈 | 关于直线 | 版权声明 | 会员须知