public override bool PickupAmmo(UFItem item) { bool miningAmmo = item.type == UFItem.ItemType.ExplosiveAmmo; if (miningAmmo) { minerTool.AddAmmo(item); } return(true); }
public override bool PickupWeapon(UFItem item) { bool miningWeapon = item.type == UFItem.ItemType.Explosive; if (miningWeapon) { minerTool.FoundWeapon(); } return(true); }
public virtual bool PickupAmmo(UFItem item) { return(false); }
public virtual bool PickupWeapon(UFItem item) { return(false); }
protected override bool ValidTrigger(Collider trigger) { UFItem item = trigger.GetComponent <UFItem>(); return(item == null); }
public void AddAmmo(UFItem item) { mineAmmo += 100; }