示例#1
0
    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);
    }
示例#2
0
    /// <summary>
    /// 界面打开。
    /// </summary>
    /// <param name="userData">用户自定义数据。</param>
    protected override void OnOpen(object userData)
    {
        base.OnOpen(userData);

        m_ProcedureMenu = userData as ProcedureMenu;
    }
示例#3
0
 protected override void OnClose(object userData)
 {
     m_ProcedureMenu = null;
     base.OnClose(userData);
 }
示例#4
0
 protected override void OnClose(bool isShutdown, object userData)
 {
     base.OnClose(isShutdown, userData);
     m_ProcedureMenu = null;
 }