コード例 #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();
     }
 }