private void AddCash() { /* só existira a referencia se o valor do objeto for maior que zero hee */ if (uiManagement) { PlayerGlobalStatus.addPlayerCash(cash); uiManagement.UpdateScoreText(); } }
private void updatePlayerStatus() { audioManager.play_die_audio(); playerHealthManager.checkPlayerHealth(); checkChancesAndRemoveIt(); PlayerGlobalStatus.SetPlayerWeaponIndex(0); uiManagement.UpdateChancesText(); uiManagement.UpdateScoreText(); }
private void AddCash() { if (uiManagement) { PlayerGlobalStatus.addPlayerCash(GetCash()); uiManagement.UpdateScoreText(); } else { Debug.LogWarning(Constantes.MISSING_REF); } }
private void AddCash() { PlayerGlobalStatus.addPlayerCash(GetComponent <DamageDealer>().GetCash()); uiManagement.UpdateScoreText(); }