private void Update() { if (!pauseMenu.isActiveAndEnabled && !optionsMenu.isActiveAndEnabled) { HandleShot(); } ammoText.text = ammoSlot.GetAmmo(ammoType).ToString(); }
private void UpdateAmmoText() { int ammoRemaining = ammoManager.GetAmmo(tag); ammoText.text = "Ammmo: " + ammoRemaining; }