added endscreen
This commit is contained in:
1 parent
a33eb50ca0
commit
8328f2a979
15 files changed
+991
-89
No files matched your search
@@ -45,7 +45,7 @@ namespace Code.UI
|
||||
|
||||
private void UpdateWeaponName()
|
||||
{
|
||||
if (weaponNameText == null || _weaponInventory?.CurrentWeapon == null) return;
|
||||
if (!weaponNameText || !_weaponInventory?.CurrentWeapon) return;
|
||||
|
||||
var weaponName = _weaponInventory.CurrentWeapon.WeaponName;
|
||||
weaponNameText.text = string.Format(weaponNameFormat, weaponName.ToUpper());
|
||||
@@ -53,7 +53,7 @@ namespace Code.UI
|
||||
|
||||
private void UpdateHealth()
|
||||
{
|
||||
if (healthText == null || _playerHealth == null) return;
|
||||
if (!healthText || !_playerHealth) return;
|
||||
|
||||
healthText.text = string.Format(healthFormat,
|
||||
_playerHealth.CurrentHealth,
|
||||
@@ -62,13 +62,13 @@ namespace Code.UI
|
||||
|
||||
private void UpdateHealth(float current, float max)
|
||||
{
|
||||
if (healthText == null) return;
|
||||
if (!healthText) return;
|
||||
healthText.text = string.Format(healthFormat, current, max);
|
||||
}
|
||||
|
||||
private void UpdateAmmo()
|
||||
{
|
||||
if (ammoText == null || _weaponInventory?.CurrentWeapon == null) return;
|
||||
if (!ammoText || !_weaponInventory?.CurrentWeapon) return;
|
||||
|
||||
var weapon = _weaponInventory.CurrentWeapon;
|
||||
ammoText.text = string.Format(ammoFormat,
|
||||
|
||||
Reference in new issue
Block a user