private void SetAmmoCount() { if (currentAmmo != playerShooter.GetCurrentAmmo() || maxAmmo != playerShooter.GetMaxAmmo()) { maxAmmo = playerShooter.GetMaxAmmo(); currentAmmo = playerShooter.GetCurrentAmmo(); myText.text = currentAmmo + " OF " + maxAmmo; } }