Пример #1
0
 private void Update()
 {
     if (Time.timeScale != 0f)
     {
         currentState.StateUpdate();
     }
 }
Пример #2
0
 /// <summary>Update loop for the states of the state machine</summary>
 public void CurrentStateUpdate()
 {
     if (currentState != null)
     {
         currentState.StateUpdate();
     }
 }