void OnDestroy() { if (stateMachine != null) { stateMachine.Destroy(); stateMachine = null; } instance = null; }
void Start() { stateMachine = new KalachingStateMachine(this); }
void OnDestroy() { if (stateMachine != null) { stateMachine.Destroy(); stateMachine = null; } instance = null; }
void Start() { stateMachine = new KalachingStateMachine(this); }