Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- 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;
- }
|