利用轴线使角色移动 private CharacterController player; void Start() { player= GetComponent<CharacterController>();//获取当前组件 }