25개 이상의 토픽을 선택하실 수 없습니다.
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 SUISS.Core;
- using SUISSEngine;
- using UnityEngine;
-
- public class TooMuchParallelBuildsPopupView : PopupBaseView
- {
- public void UpdateInfo(Currencies extraCost)
- {
- this._bodyLabel.LocalizedString = Localization.Format(Localization.Key("too_many_builds"), new ILocalizedString[]
- {
- Localization.Integer(SingletonMonobehaviour<CIGBuilderManager>.Instance.MaxBuildCount)
- });
- this._goldLabel.LocalizedString = Localization.Integer(extraCost.GetValue("Gold"));
- }
-
- public void OnBuyButtonClicked()
- {
- ((TooMuchParallelBuildsPopupState)this.State).Buy();
- }
-
- public void OnCancelClicked()
- {
- this.OnCloseClicked();
- }
-
- [SerializeField]
- private LocalizedText _bodyLabel;
-
- [SerializeField]
- private LocalizedText _goldLabel;
- }
|