代码源自噩梦射手,记录一下方便后续使用,顺便将老师的解释给备注上去_(:з」∠)_ using UnityEngine; using UnitySampleAssets.CrossPlatformInput; namespace CompleteProject { public class PlayerMovement : MonoBehaviour { public float speed = 6f; // The speed that the player will move at. Vec