Пример #1
0
    public override bool PickupAmmo(UFItem item)
    {
        bool miningAmmo = item.type == UFItem.ItemType.ExplosiveAmmo;

        if (miningAmmo)
        {
            minerTool.AddAmmo(item);
        }
        return(true);
    }
Пример #2
0
    public override bool PickupWeapon(UFItem item)
    {
        bool miningWeapon = item.type == UFItem.ItemType.Explosive;

        if (miningWeapon)
        {
            minerTool.FoundWeapon();
        }
        return(true);
    }
Пример #3
0
 public virtual bool PickupAmmo(UFItem item)
 {
     return(false);
 }
Пример #4
0
 public virtual bool PickupWeapon(UFItem item)
 {
     return(false);
 }
Пример #5
0
    protected override bool ValidTrigger(Collider trigger)
    {
        UFItem item = trigger.GetComponent <UFItem>();

        return(item == null);
    }
Пример #6
0
 public void AddAmmo(UFItem item)
 {
     mineAmmo += 100;
 }