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; }