Beispiel #1
0
        //void showCam()
        //{
        //    if (instance != null)
        //    {
        //        CreatWingAvatar();
        //    }
        //}
        public override void onClosed()
        {
            instance = null;
            (CrossApp.singleton.getPlugin("processManager") as processManager).removeProcess(process);
            A3_WingProxy.getInstance().removeEventListener(A3_WingProxy.ON_LEVEL_EXP_CHANGE, OnLevelExpChange);
            A3_WingProxy.getInstance().removeEventListener(A3_WingProxy.ON_STAGE_CHANGE, OnStageChange);
            A3_WingProxy.getInstance().removeEventListener(A3_WingProxy.ON_LEVEL_AUTO_UPGRADE, OnLevelExpChange);
            A3_WingProxy.getInstance().removeEventListener(A3_WingProxy.ON_SHOW_CHANGE, OnShowStageChange);
            A3_WingProxy.getInstance().removeEventListener(A3_WingProxy.ON_STAGE_DIFT, OnStageNO);

            if (m_proAvatar != null)
            {
                m_proAvatar.dispose();
                m_proAvatar = null;
            }

            DisposeAvatar();

            DisposeIcon();
            fail.gameObject.SetActive(false);
            success.gameObject.SetActive(false);
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_NORMAL);

            transform.FindChild("con_level/expbar/expUp").gameObject.SetActive(false);
            GRMap.GAME_CAMERA.SetActive(true);
        }
Beispiel #2
0
        public override void onShowed()
        {
            instance = this;

            (CrossApp.singleton.getPlugin("processManager") as processManager).addProcess(process);

            A3_WingProxy.getInstance().addEventListener(A3_WingProxy.ON_STAGE_CHANGE, OnStageChange);

            A3_WingProxy.getInstance().addEventListener(A3_WingProxy.ON_SHOW_CHANGE, OnShowStageChange);
            A3_WingProxy.getInstance().addEventListener(A3_WingProxy.ON_STAGE_DIFT, OnStageNO);
            A3_WingProxy.getInstance().addEventListener(A3_WingProxy.ON_LEVEL_EXP_CHANGE, OnLevelExpChange);
            A3_WingProxy.getInstance().addEventListener(A3_WingProxy.ON_LEVEL_AUTO_UPGRADE, OnLevelExpChange);
            int curStage  = wingModel.Stage;
            int curLevel  = wingModel.Level;
            int showStage = wingModel.ShowStage;

            ShowStage_yuxuan = 0;
            curWing          = wingModel.dicWingsData[curStage];
            WingsData sData = wingModel.dicWingsData[curStage];

            InitExpSlider(wingModel.Stage, wingModel.Level, wingModel.Exp);

            CreatAllWingsIcon(curStage);

            ShowTitle(sData);
            RefreshAtt(curStage, curLevel);
            RefreshStar(curLevel);
            RefreshCostInfo(wingModel.Stage, wingModel.Level);
            OnSetIconBGImage(showStage);

            OnStageSliderSetting(curWing);
            RefreshPanel(curStage, curLevel);
            ShowPage(pageIndex);

            InitExpState();
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_FUNCTIONBAR);
            transform.FindChild("ig_bg_bg").gameObject.SetActive(false);
            base.onShowed();

            GRMap.GAME_CAMERA.SetActive(false);

            CreatWingAvatar();

            UiEventCenter.getInstance().onWinOpen(uiName);
            setNeedNum_lvl();
            setNeedNum_stage();
            //CancelInvoke("showCam");
            //Invoke("showCam", 0.2f);
        }
Beispiel #3
0
        public override void onClosed()
        {
            a3_wing_skin.instance = null;
            (CrossApp.singleton.getPlugin("processManager") as processManager).removeProcess(this.process, false);
            BaseProxy <A3_WingProxy> .getInstance().removeEventListener(0u, new Action <GameEvent>(this.OnLevelExpChange));

            BaseProxy <A3_WingProxy> .getInstance().removeEventListener(1u, new Action <GameEvent>(this.OnStageChange));

            BaseProxy <A3_WingProxy> .getInstance().removeEventListener(2u, new Action <GameEvent>(this.OnLevelExpChange));

            BaseProxy <A3_WingProxy> .getInstance().removeEventListener(3u, new Action <GameEvent>(this.OnShowStageChange));

            this.DisposeAvatar();
            this.DisposeIcon();
            this.fail.gameObject.SetActive(false);
            this.success.gameObject.SetActive(false);
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_NORMAL);
            base.transform.FindChild("con_level/expbar/expUp").gameObject.SetActive(false);
            GRMap.GAME_CAMERA.SetActive(true);
        }
Beispiel #4
0
        public override void onShowed()
        {
            a3_wing_skin.instance = this;
            (CrossApp.singleton.getPlugin("processManager") as processManager).addProcess(this.process, false);
            BaseProxy <A3_WingProxy> .getInstance().addEventListener(0u, new Action <GameEvent>(this.OnLevelExpChange));

            BaseProxy <A3_WingProxy> .getInstance().addEventListener(1u, new Action <GameEvent>(this.OnStageChange));

            BaseProxy <A3_WingProxy> .getInstance().addEventListener(2u, new Action <GameEvent>(this.OnLevelExpChange));

            BaseProxy <A3_WingProxy> .getInstance().addEventListener(3u, new Action <GameEvent>(this.OnShowStageChange));

            BaseProxy <A3_WingProxy> .getInstance().addEventListener(4u, new Action <GameEvent>(this.OnStageNO));

            int stage     = this.wingModel.Stage;
            int level     = this.wingModel.Level;
            int showStage = this.wingModel.ShowStage;

            this.ShowStage_yuxuan = 0;
            this.curWing          = this.wingModel.dicWingsData[stage];
            WingsData data = this.wingModel.dicWingsData[stage];

            this.InitExpSlider(this.wingModel.Stage, this.wingModel.Level, this.wingModel.Exp);
            this.CreatAllWingsIcon(stage);
            this.ShowTitle(data);
            this.RefreshAtt(stage, level);
            this.RefreshStar(level);
            this.RefreshCostInfo(this.wingModel.Stage, this.wingModel.Level);
            this.OnSetIconBGImage(showStage);
            this.OnStageSliderSetting(this.curWing);
            this.RefreshPanel(stage, level);
            this.ShowPage(this.pageIndex);
            this.InitExpState();
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_FUNCTIONBAR);
            base.transform.FindChild("ig_bg_bg").gameObject.SetActive(false);
            base.onShowed();
            GRMap.GAME_CAMERA.SetActive(false);
            this.CreatWingAvatar();
        }