// Use this for initialization void Start() { _stateMachine = new VRI.FSM.StateMachine(); _stateMachine.State = new NormalState(); Destroy(gameObject, 5f); }
void OnDestroy() { _stateMachine.Dispose(); _stateMachine = null; }