コード例 #1
0
ファイル: SBuySmShop.cs プロジェクト: ww386362087/MoyuHero
        public override void Process()
        {
            BattleStageMgr pData = ObjectSelf.GetInstance().BattleStageData;

            if (smshop.Count > 0)
            {
                pData.LoadMysteriousShop(smshop);
            }
            GameEventDispatcher.Inst.dispatchEvent(GameEventID.UI_MysteriousShopBuyReplay, endtype);
        }
コード例 #2
0
ファイル: SEndBattle.cs プロジェクト: ww386362087/MoyuHero
        public override void Process()
        {
            ObjectSelf.GetInstance().SetIsOpenSealBox(false);
            if (moheshop.Count > 0)
            {
                ObjectSelf.GetInstance().MoheDataClear();
                ObjectSelf.GetInstance().SetIsOpenSealBox(true);
                int nCount = DataTemplate.GetInstance().m_BossboxTable.getDataCount();
                for (int i = 1; i <= nCount; i++)
                {
                    if (moheshop.ContainsKey(i))
                    {
                        Mohe data = moheshop[i] as Mohe;
                        ObjectSelf.GetInstance().MoheDataAdd(data);
                    }
                }
            }
            BattleStageMgr pData = ObjectSelf.GetInstance().BattleStageData;

            if (smid > 0)
            {
                //UnityEngine.Debug.Log("调试:强制修改smid至1310281000 hashTable:" + smshop.Count);
                //smid = 1310281000;
                //time = 600;
                pData.m_IsOpenSpecialStage = true;
                pData.m_SpecialStage.CopyData(smid, time, zhangjie);



                if (smid > 1299999999 && smid < 1400000000)//特殊关卡
                {
                    //GameEventDispatcher.Inst.dispatchEvent(GameEventID.UI_SpecialStageTips, true);
                    UI_FightControler.Inst.SetIsSpecialStage(true);
                }
                else                                        //触发神秘商店
                {
                    if (smshop.Count > 0)
                    {
                        pData.LoadMysteriousShop(smshop);
                        //GameEventDispatcher.Inst.dispatchEvent(GameEventID.UI_MysteriousShopSpecialTips,true);
                        UI_FightControler.Inst.SetIsMysteriousShop(true);
                    }
                }
            }

            if (endtype == END_OK)
            {
                GameEventDispatcher.Inst.dispatchEvent(GameEventID.SE_FightWin);
            }
        }