feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using Cute;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class BattlePassPurchaseProductView : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private UITexture _posterTexture;
|
||||
|
||||
[SerializeField]
|
||||
private UIButton _buyBtn;
|
||||
|
||||
[SerializeField]
|
||||
private UILabel _priceLabel;
|
||||
|
||||
public void SetView(BattlePassProduct product, Action<BattlePassProduct> onClickPoster, Action<BattlePassProduct> onClickBuyBtn)
|
||||
{
|
||||
_posterTexture.mainTexture = Toolbox.ResourcesManager.LoadObject(product.GetPosterTexturePath(isFetch: true)) as Texture;
|
||||
_priceLabel.text = product.PriceInCrystal.ToString();
|
||||
UIEventListener.Get(_posterTexture.gameObject).onClick = delegate
|
||||
{
|
||||
onClickPoster.Call(product);
|
||||
};
|
||||
_buyBtn.onClick.Clear();
|
||||
_buyBtn.onClick.Add(new EventDelegate(delegate
|
||||
{
|
||||
GameMgr.GetIns().GetSoundMgr().PlaySe(Se.TYPE.SYS_BTN_DECIDE);
|
||||
onClickBuyBtn.Call(product);
|
||||
}));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user