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