예제 #1
0
 void OnDestroy()
 {
     if (stateMachine != null)
     {
         stateMachine.Destroy();
         stateMachine = null;
     }
     instance = null;
 }
예제 #2
0
 void Start()
 {
     stateMachine = new KalachingStateMachine(this);
 }