Example #1
0
    private void Update()
    {
        if (Input.GetKeyDown(TOGGLE_CAMERA_ANCHOR))
        {
            MainCamera.ToggleAutoAdjust();
            GlobeUIRenderCamera.ToggleAutoAdjust();
        }

        if (Movement.CanHandleInput)
        {
            if (Input.GetKeyDown(SET_MOVE_ACCELERATE))
            {
                MoveAccelerate();
            }

            if (Input.GetKeyDown(SET_MOVE_NEUTRAL))
            {
                MoveNeutral();
            }

            if (Input.GetKeyDown(SET_MOVE_DECELERATE))
            {
                MoveDecelerate();
            }
        }
    }