Beispiel #1
0
    private void SetCash()
    {
        PlayerGlobalStatus.addPlayerCash(CASH);
        GameObject cashPanel = transform.Find(Constantes.CASH_PANEL).gameObject;

        cashPanel.GetComponentInChildren <TextMeshProUGUI>().text = Constantes.CASH + "\n" + PlayerGlobalStatus.getPlayerCash().ToString("C2");
    }
Beispiel #2
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();
     }
 }
Beispiel #3
0
 private void AddCash()
 {
     if (uiManagement)
     {
         PlayerGlobalStatus.addPlayerCash(GetCash());
         uiManagement.UpdateScoreText();
     }
     else
     {
         Debug.LogWarning(Constantes.MISSING_REF);
     }
 }
Beispiel #4
0
    public void SucessSoldPurchasedText(float soldPrice)
    {
        EnablePurchaseStatusPanel();
        SetUpgradeInfoPanel(false);
        SetCancelButtonVisibility(false);
        SetPanelAtributes(true, false);
        string texto = string.Format(purchaseTexts[3].ToString() + "{0,24}", soldPrice.ToString("C2"));

        textReference.text = texto;
        PlayerGlobalStatus.addPlayerCash(soldPrice);
        UpdateCash();
    }
Beispiel #5
0
 private void AddCash()
 {
     PlayerGlobalStatus.addPlayerCash(GetComponent <DamageDealer>().GetCash());
     uiManagement.UpdateScoreText();
 }