static void Main(string[] args) { Guardian guardian = new Guardian(); guardian.PerformAction(); guardian.PerformAction(); guardian.PerformAction(true); guardian.PerformAction(); guardian.PerformAction(true); guardian.PerformAction(); guardian.PerformAction(); guardian.PerformAction(true); guardian.PerformAction(); Console.ReadKey(); }
public FightState(Guardian guardian) { this.guardian = guardian; }
public ChaseState(Guardian guardian) { this.guardian = guardian; }
public PatrolState(Guardian guardian) { this.guardian = guardian; }