Ejemplo n.º 1
0
    // Update is called once per frame
    void FixedUpdate()
    {
        float forwardInputValue    = Input.GetAxis("Vertical");
        float horizontalInputValue = Input.GetAxis("Horizontal");

        Shipcontroller.CallLateralAndForardMove(forwardInputValue, horizontalInputValue);
        Shipcontroller.CallMouseAxisInput();

        if (!ShipState.IsGameover)
        {
            Shipcontroller.CallAxisRotation();
            if (Input.GetKeyUp(KeyCode.LeftControl))
            {
                Shipcontroller.ChangeCamera();
            }

            if (Input.GetKey(KeyCode.LeftShift))
            {
                Shipcontroller.Booster();
            }
            else
            {
                Shipcontroller.UnBooste();
            }
            //GetDirectionPoint();

            Shipcontroller.MoveForwarde();

            ShipState.ShieldCoolDownCompute();
        }
    }