public bool DoIHaveDeliv() { if (MyDeliv.Isempty() == false && DeliveryFailed == false) { return(true); } return(false); }
public bool NewDelivry(DeliveryItem newone) { if (newone.Destination != "" && newone.DesVec != new Vector3() && newone.Isempty() == false) { MyDeliv = newone; CurrentWeight += newone.DelWeight(); MyHero.MyWorkControl.PickupDone(MyPickup); MyPickup = new PickupInfo(); return(true); } MyHero.MyWorkControl.PickupDone(MyPickup); if (MyHero.myrole == HeroAI.Role.Hero && MyPickup.Pickup.tag == "ResourceNode") { MyPickup.Pickup.GetComponent <ResNode> ().IDontWanna(MyHero.HeroIdNumber); } MyPickup = new PickupInfo(); return(false); }