我做了精灵和应用刚体2D组件,它的工作正常,因为它应该,现在我写了这段代码,但是,当我开始玩游戏它工作了一段时间,但在那之后,重力似乎为空,意味着我的刚体不下来时,我将钥匙 // Update is called once per frame void Update() { if (Input.GetKey (KeyCode.LeftArrow)) { posX--; } else if (Inp
我有一个场景,玩家可以拾取和丢弃物体,以及移动和环视。 所有的球员对象是一个空的游戏对象“MainCharacter”的孩子: MainCharacter >
Capsule (With RigidBody and PlayerMoveScript) >
PlayerBase (empty - used for checking if grounded)
Main