You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 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;
- }
|