示例#1
0
        private void OnOpenUIFormSuccess(object sender, GameEventArgs e)
        {
            OpenUIFormSuccessEventArgs ne = (OpenUIFormSuccessEventArgs)e;

            if (ne.UserData != this)
            {
                return;
            }

            m_LoadoutForm = (LoadoutForm)ne.UIForm.Logic;
        }
示例#2
0
        protected override void OnLeave(IFsm <IProcedureManager> procedureOwner, bool isShutdown)
        {
            base.OnLeave(procedureOwner, isShutdown);
            if (m_LoadoutForm != null)
            {
                m_LoadoutForm.Close();
                m_LoadoutForm = null;
            }

            GameEntry.Event.Unsubscribe(OpenUIFormSuccessEventArgs.EventId, OnOpenUIFormSuccess);
        }