Beispiel #1
0
        public override void onShowed()
        {
            instance = this;
            var vv = getTransformByPath("ig_bg_bg");

            if (vv != null)
            {
                vv.gameObject.SetActive(false);
            }
            CancelInvoke("CloseM");
            SetShow();
            InvokeRepeating("CloseM", 1, 0.1f);
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_SHOW_ONLYWIN);
        }
Beispiel #2
0
        public override void onShowed()
        {
            a3_chapter_hint.instance = this;
            Transform transformByPath = base.getTransformByPath("ig_bg_bg");
            bool      flag            = transformByPath != null;

            if (flag)
            {
                transformByPath.gameObject.SetActive(false);
            }
            base.CancelInvoke("CloseM");
            this.SetShow();
            base.InvokeRepeating("CloseM", 1f, 0.1f);
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_SHOW_ONLYWIN);
        }
Beispiel #3
0
        public override void onClosed()
        {
            instance = null;
            gg.SetActive(false);
            if (InterfaceMgr.getInstance().checkWinOpened(InterfaceMgr.NPC_TASK_TALK))
            {
                InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_STORY);
                if (npctalk.instance != null)
                {
                    npctalk.instance.MinOrMax();
                }
            }
            else
            {
                InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_NORMAL);
            }

            CancelInvoke("CloseM");
            a3_liteMinimap.instance.TaskBtn(null, false);
        }
Beispiel #4
0
        public override void onClosed()
        {
            a3_chapter_hint.instance = null;
            this.gg.SetActive(false);
            bool flag = InterfaceMgr.getInstance().checkWinOpened(InterfaceMgr.NPC_TASK_TALK);

            if (flag)
            {
                InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_STORY);
                bool flag2 = npctalk.instance != null;
                if (flag2)
                {
                    npctalk.instance.MinOrMax(true);
                }
            }
            else
            {
                InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_NORMAL);
            }
            base.CancelInvoke("CloseM");
        }
Beispiel #5
0
 void OnDisable()
 {
     instance = null;
 }
Beispiel #6
0
 private void OnDisable()
 {
     a3_chapter_hint.instance = null;
 }