コード例 #1
0
        protected override void OnPanelOpen(params object[] args)
        {
            m_OpenParam = null;

            if (args.Length > 0)
            {
                m_OpenParam = args[0] as TransitionHelper.OpenParam;
            }

            if (m_OpenParam == null)
            {
                CloseSelfPanel();
                return;
            }

            if (m_OpenParam.action == null)
            {
                m_Action = this;
            }
            else
            {
                m_Action = m_OpenParam.action;
            }
            m_Action.transitionHandler = this;
            m_Action.PrepareTransition();
        }
コード例 #2
0
        protected override void OnClose()
        {
            if (m_Action != null)
            {
                m_Action.OnTransitionDestroy();
            }

            m_OpenParam = null;

            m_Action = null;

            m_NextPanel = null;

            if (m_NextPanelResLoader != null)
            {
                m_NextPanelResLoader.Recycle2Cache();
                m_NextPanelResLoader = null;
            }
        }