Ejemplo n.º 1
0
 void ChangeState(ZombieStateEnum newState)
 {
     if (_currState != null)
     {
         _currState.OnExit(this);
     }
     _currState = _states[newState];
     _currState.OnEnter(this);
 }