public void SucessFullyPurchasedText(float boughPrice) { EnablePurchaseStatusPanel(); SetUpgradeInfoPanel(false); SetCancelButtonVisibility(false); SetPanelAtributes(true, false); textReference.text = purchaseTexts[2].ToString(); PlayerGlobalStatus.decreaseCash(boughPrice); UpdateCash(); }
public void SucessUpgradedPurchasedText() { EnablePurchaseStatusPanel(); SetUpgradeInfoPanel(false); SetCancelButtonVisibility(false); SetPanelAtributes(true, false); textReference.text = purchaseTexts[4].ToString(); // Debug.LogWarning("vai descontar " + callerRef.GetComponent<ItemManager>().GetUpgradePriceAux() ); PlayerGlobalStatus.decreaseCash(callerRef.GetComponent <ItemManager>().GetUpgradePriceAux()); UpdateCash(); }