Exemplo n.º 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>();
 }
Exemplo n.º 2
0
 public Deposit(GameObject agent, GameObject targetBeehive)
     : base(agent, TaskType.Deposit)
 {
     targetHive = targetBeehive.GetComponent<HiveWarehouse>();
     load = agent.GetComponent<BeeLoad>();
 }
Exemplo n.º 3
0
 public Harvest(GameObject agent, GameObject resource)
     : base(agent, TaskType.Harvest)
 {
     this.resource = resource;
     load = agent.GetComponent<BeeLoad>();
 }