Example #1
0
 void SetAmounition(Item toItem, ItemID id)
 {
     if (gunController.ContainsGunInInventory(id))
     {
         gunController.AddMagazine(toItem.giveAmount, id);
     }
     else
     {
         pickupSuccessfull = false;
     }
 }