Exemple #1
0
    //REVISAR-----------------------------------------------------------------------------
    private void FixedUpdate()
    {
        // Read input for the pitch, yaw, roll and throttle of the aeroplane.
        float roll     = Input.GetAxis("Horizontal");
        float throttle = Input.GetAxis("Vertical");
        bool  fire     = Input.GetButton("Fire1");

        // Pass the input to the aeroplane
        m_Ship.Move(roll, throttle);
        m_Stars.Move(GetComponent <ShipController>().ReturnIncreaseSpeed() * throttle);
        m_Ship.Fire(fire);
    }