Beispiel #1
0
        protected internal override void OnClose(object userData)
#endif
        {
            m_ProcedureMenu = null;

            base.OnClose(userData);
        }
Beispiel #2
0
        protected internal override void OnOpen(object userData)
#endif
        {
            base.OnOpen(userData);

            m_ProcedureMenu = (ProcedureMenu)userData;
            if (m_ProcedureMenu == null)
            {
                Log.Warning("ProcedureMenu is invalid when open MenuForm.");
                return;
            }

            if (m_StartGameButton)
            {
                var unityEvent = new UnityEvent();
                unityEvent.AddListener(StartGameEvent);
                CommonButton.Get(m_StartGameButton).m_OnClick = unityEvent;
            }
        }