Example #1
0
 public Extract(GameObject agent, GameObject resource)
     : base(agent, TaskType.Extract)
 {
     timeFromLastExtraction = 0.0f;
     stats = agent.GetComponent<Stats>();
     yielder = resource.GetComponent<ResourceYielder>();
     load = agent.GetComponent<BeeLoad>();
 }
Example #2
0
 public Deposit(GameObject agent, GameObject targetBeehive)
     : base(agent, TaskType.Deposit)
 {
     targetHive = targetBeehive.GetComponent<HiveWarehouse>();
     load = agent.GetComponent<BeeLoad>();
 }
Example #3
0
 public Harvest(GameObject agent, GameObject resource)
     : base(agent, TaskType.Harvest)
 {
     this.resource = resource;
     load = agent.GetComponent<BeeLoad>();
 }