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