void Update()
    {
        float inputDelta = Input.acceleration.x;

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

        controller.MoveAlongX(inputDelta);
        if (Input.GetKey(KeyCode.Space))
        {
            controller.PerformShot();
        }
    }
Beispiel #3
0
 private void PerformFire()
 {
     controller.PerformShot();
 }