Exemplo n.º 1
0
 private void ChangeState(InputController.MovementTypeState newState)
 {
     if (OnStateChange != null)
     {
         OnStateChange(newState);
     }
 }
Exemplo n.º 2
0
    private void OnStateChange(InputController.MovementTypeState newInputState)
    {
        //if the current state are the same, abort. No need to change the state we're in

        if (newInputState == currentState)
        {
            return;
        }

        currentState = newInputState;

        text.text = "Mode: " + currentState;
    }
Exemplo n.º 3
0
        private void OnStateChange(InputController.MovementTypeState newInputState)
        {
            //if the current state are the same, abort. No need to change the state we're in

            if (newInputState == currentState)
            {
                return;
            }

            currentState = newInputState;

            //            print("current state has changed to " + newInputState);
        }