Example #1
0
 private void Update()
 {
     if (!pauseMenu.isActiveAndEnabled && !optionsMenu.isActiveAndEnabled)
     {
         HandleShot();
     }
     ammoText.text = ammoSlot.GetAmmo(ammoType).ToString();
 }
Example #2
0
    private void UpdateAmmoText()
    {
        int ammoRemaining = ammoManager.GetAmmo(tag);

        ammoText.text = "Ammmo: " + ammoRemaining;
    }