Beispiel #1
0
 // 2
 private void pickupAssaultRifleAmmo()
 {
     ammo.AddAmmo(Constants.AssaultRifle, 50);
     gameUI.SetPickUpText("Assault rifle ammo picked up + 50 ammo");
     if (gunEquipper.GetActiveWeapon().tag == Constants.AssaultRifle)
     {
         gameUI.SetAmmoText(ammo.GetAmmo(Constants.AssaultRifle));
     }
 }
Beispiel #2
0
 private void PickupPistolAmmo()
 {
     ammo.AddAmmo(Constants.Pistol, 20);
     gameUI.SetPickUpText("Pistol ammo picked up + 20 ammo");
     if (gunEquipper.GetActiveWeapon().tag == Constants.Pistol)
     {
         gameUI.SetAmmoText(ammo.GetAmmo(Constants.Pistol));
     }
 }
Beispiel #3
0
 private void PickupAssaultRifleAmmo()
 {
     m_Ammo.AddAmmo(Constants.AssaultRifle, 50);
     GameUi.SetPickupText("Assault rifle ammo picked up + 50 ammo");
     if (m_GunEquipper.GetActiveWeapon().CompareTag(Constants.AssaultRifle))
     {
         GameUi.SetAmmoText(m_Ammo.GetAmmoCount(Constants.AssaultRifle));
     }
 }
Beispiel #4
0
 private void pickupSniperAmmo()
 {
     ammo.AddAmmo(Constants.Sniper, 5);
     gameUI.SetPickupText("Pickup: Ammo +5");
     if (gunEquipper.GetActiveWeapon().tag == Constants.Sniper)
     {
         gameUI.SetAmmoText(ammo.GetAmmo(Constants.Sniper));
     }
 }