Пример #1
0
 void OnDestroy()
 {
     // stop the state machine to ensure all the Exit() gets called
     if (m_PlayerSM != null)
     {
         m_PlayerSM.StopSM();
         m_PlayerSM = null;
     }
 }