using FGUI.ZM_Common_01; using UnityEngine; using FairyGUI; namespace TowerClimberChronicles { public class FlowerAddSlotUI : BaseUI { private FlowerAddSlotUICtrl ctrl; private FlowerAddSlotModel model; private FGUI.Game_flower_buy.com_addslot ui; public FlowerAddSlotUI(FlowerAddSlotUICtrl ctrl) : base(ctrl) { uiName = UIConst.FlowerAddSlotUI; this.ctrl = ctrl; } protected override void SetUIInfo(UIInfo uiInfo) { uiInfo.packageName = "Game_flower_buy"; uiInfo.assetName = "com_addslot"; uiInfo.layerType = UILayerType.Popup; uiInfo.isNeedOpenAnim = false; uiInfo.isNeedCloseAnim = false; uiInfo.isNeedUIMask = true; } #region 生命周期 protected override void OnInit() { //model = ModuleManager.Instance.GetModel(ModelConst.FlowerAddSlotModel) as FlowerAddSlotModel; } protected override void OnClose() { } protected override void OnBind() { ui = baseUI as FGUI.Game_flower_buy.com_addslot; } protected override void OnOpenBefore(object args) { InitView(); } protected override void OnOpen(object args) { } protected override void OnHide() { } protected override void OnDisplay(object args) { } #endregion #region 消息 protected override void AddListener() { } protected override void RemoveListener() { } #endregion //初始化页面逻辑 private void InitView() { } } }