void Update() { float inputDelta = Input.GetAxis("Horizontal"); controller.MoveAlongX(inputDelta); if (Input.GetKey(KeyCode.Space)) { controller.PerformShot(); } }
void Update() { float inputDelta = Input.acceleration.x; controller.MoveAlongX(inputDelta); if (Input.touchCount != 0) { controller.PerformShot(); } }