protected internal override void OnInit(object userData) { base.OnInit(userData); _procedure = (ProcedureMenu)userData; _btn = CachedTransform.Find("Button").GetComponent <UIButton>(); UIEventListener.Get(_btn.gameObject).onClick = OnBtnClick; //GameManager.Event.Subscribe(LuaEventId.TestLuaEvent,OnLuaEventSend); }
/// <summary> /// 界面打开。 /// </summary> /// <param name="userData">用户自定义数据。</param> protected override void OnOpen(object userData) { base.OnOpen(userData); m_ProcedureMenu = userData as ProcedureMenu; }
protected override void OnClose(object userData) { m_ProcedureMenu = null; base.OnClose(userData); }
protected override void OnClose(bool isShutdown, object userData) { base.OnClose(isShutdown, userData); m_ProcedureMenu = null; }