using Common.Combat; using Fort23.Core; using Fort23.UTool; using UnityEngine; using UnityEngine.UI; namespace Fort23.Mono { [UIBinding(prefab = "GraphicHelpPanel")] public partial class GraphicHelpPanel : UIPanel { public Button CloseBtn; public CustomStateController CustomStateController; public RectTransform MoveRoot; public int CurIndex; public int GraphicCount; public GameObjectPool GameObjectPool; private void Init() { IsShowAppBar = false; } public override async CTask AsyncInit(object[] uiData) { CTask InitCTask = CTask.Create(); string name = (string)uiData[0]; GraphicCount = (int)uiData[1]; GameObjectPool = await GObjectPool.Instance.FetchAsync(name); GameObjectPool.own.transform.SetParent(Root); GameObjectPool.own.transform.localScale = Vector3.one; GameObjectPool.own.transform.localPosition = Vector3.zero; CustomInit(GameObjectPool.own.GetComponent()); InitCTask.SetResult(true); return await InitCTask; } public void CustomInit(ReferenceCollector referenceCollector) { CloseBtn = referenceCollector.Get