Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
|
- 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;
- }
|