예제 #1
0
 private void DeliverOrder(Targetable target)
 {
     if (CarriedResourceAmount > 0 && target.RequiresResource(CarriedResourceType))
     {
         currentOrder  = Orders.DELIVER;
         deliverTarget = target;
         agent.SetDestination(target.targetObject.transform.position);
     }
 }