public override void CheckForStateExit() { if (health.IsDead()) { machine.SetCurrentState("Dead"); } else if (ufo.DonePatrolling()) { machine.SetCurrentState("Attack"); } }
public override void CheckForStateExit() { if (health.IsDead()) { machine.SetCurrentState("Dead"); } else if (ufo.DonePatrolling()) { machine.SetCurrentState("Attack"); } }