コード例 #1
0
 void Update()
 {
     if (currentState)
     {
         currentState.StateUpdate();
         currentState.CheckForStateExit();
         ChangeState();
     }
     else
     {
         Debug.Log("Current state is null!");
     }
 }