Esempio n. 1
0
 public ReturnState(OrientedActor actor, Flagger job)
 {
     self       = actor;
     pathFinder = self.pathFind;
     grid       = self.grid;
     CtF        = self.CtF;
     flagger    = job;
 }
Esempio n. 2
0
 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;
     }
 }