public ReturnState(OrientedActor actor, Flagger job) { self = actor; pathFinder = self.pathFind; grid = self.grid; CtF = self.CtF; flagger = job; }
public void SetJob(int job) { if (job == 1) { jobName = "Defender"; defender = new Defender(this); currentJob = defender; } else { jobName = "Attacker"; flagger = new Flagger(this); currentJob = flagger; } }