Example #1
0
 /// <summary>
 /// ステートの切り替え
 /// </summary>
 public void SwitchState(IPlayerState nextState)
 {
     if (state != nextState)
     {
         if (!IsStateNull())
         {
             state.Destroy(playerControllerInstance);
         }
         state = nextState;
         state.Init(playerControllerInstance);
     }
 }