public void Init() { m_BaseWndObject = GameObject.Instantiate(GlobalHallUIMgr.Instance.ShopSysObj[0]) as GameObject; m_BaseTrans = m_BaseWndObject.transform; m_BaseTrans.SetParent(SceneObjMgr.Instance.UIPanelTransform, false); if (m_BaseWndObject.activeSelf != true) { m_BaseWndObject.SetActive(true); } InitBottomInfo(); InitWndTopInfo(); InitChildWnd(); //管理器初始化 ShopRuntime.Init(this); m_UIBackBtn = m_BaseTrans.GetChild(3).GetChild(0).GetComponent <UIButton>(); UIEventListener.Get(m_BaseTrans.GetChild(3).GetChild(0).gameObject).onClick = OnClickBackMsg; //返回按纽 }
public void ShutDown() { if (m_BaseWndObject != null) { WndManager.Instance.Pop(m_BaseWndObject); GameObject.Destroy(m_BaseWndObject); m_ConfirmBryWnd.ShutDown(); ShopRuntime.Shutdown(); if (HallRunTimeInfo.Instance_UI != null) { if (HallRunTimeInfo.Login_UI.GetWindStatue().m_state != HallLogicUIStatue.Hall_State.Hall_Contest) { HallRunTimeInfo.Login_UI.ShowMainWindCenterInf(true); } } m_BaseWndObject = null; } }
public static void Init(ShopLogicMgr logic) { Instance = new ShopRuntime(); Instance.Shop = logic; }
public static void Shutdown() { Instance = null; }