コード例 #1
0
 public void EndCurState()
 {
     if (m_CurState)
     {
         m_CurState.EndState();
         m_CurState = null;
         SetSpeed(Vector2.zero);
     }
 }
コード例 #2
0
 public void ChangeState(PetBaseState state)
 {
     EndCurState();
     m_CurState = state;
     state.StartState();
 }