Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
- using System;
- using CIG.Translation;
- using SUISSEngine;
- using UnityEngine;
-
- public class BuyExpansionPopupView : PopupBaseView
- {
- public void SetPrice(Currencies price)
- {
- this._goldLabel.LocalizedString = Localization.Integer(price.GetValue("Gold"));
- this._cashLabel.LocalizedString = Localization.Integer(price.GetValue("Cash"));
- }
-
- public void OnBuyWithGoldClicked()
- {
- if (!base.PopupState.Closed)
- {
- ((BuyExpansionPopupState)this.State).BuyWith("Gold");
- }
- }
-
- public void OnBuyWithCashClicked()
- {
- if (!base.PopupState.Closed)
- {
- ((BuyExpansionPopupState)this.State).BuyWith("Cash");
- }
- }
-
- [SerializeField]
- private LocalizedText _cashLabel;
-
- [SerializeField]
- private LocalizedText _goldLabel;
- }
|