Beispiel #1
0
        private void ComeToMaster(PickupWorker worker)
        {
            var pos = this.transform.position;

            pos = pos + Vector3.ClampMagnitude(worker.unit.position - pos, _radius * 0.5f);

            worker.unit.MoveTo(pos, false);
        }
Beispiel #2
0
 public void RegisterWorker(PickupWorker worker)
 {
     //Start by calling workers to come to the master for an assignment
     ComeToMaster(worker);
 }
Beispiel #3
0
 public void PickupComplete(PickupWorker worker)
 {
     ComeToMaster(worker);
 }