コード例 #1
0
        private void SetGashaCutScene(GameWebAPI.RespDataGA_ExecTicket gashaResult, int playCount)
        {
            string  bgmFileName = (playCount != 1) ? "bgm_205" : "bgm_204";
            UIPanel uipanel     = GUIMain.GetUIPanel();
            CutsceneDataTicketGasha cutsceneDataTicketGasha = new CutsceneDataTicketGasha
            {
                path           = "Cutscenes/ticketGacha",
                gashaResult    = gashaResult.userDungeonTicketList,
                bgmFileName    = bgmFileName,
                backgroundSize = uipanel.GetWindowSize()
            };

            cutsceneDataTicketGasha.endCallback = delegate(RenderTexture renderTexture)
            {
                UITexture txBG = CMD_TicketGashaResult.instance.txBG;
                txBG.mainTexture = renderTexture;
                txBG.width       = renderTexture.width;
                txBG.height      = renderTexture.height;
                CutSceneMain.FadeReqCutSceneEnd();
                SoundMng.Instance().PlayGameBGM("bgm_202");
            };
            Loading.Invisible();
            CutsceneDataBase cutsceneData = cutsceneDataTicketGasha;

            if (ExecGashaTicket.< > f__mg$cache0 == null)
            {
                ExecGashaTicket.< > f__mg$cache0 = new Action(CMD_TicketGashaResult.CreateDialog);
            }
            CutSceneMain.FadeReqCutScene(cutsceneData, ExecGashaTicket.< > f__mg$cache0, null, new Action <int>(this.OnShowedGashaResultDialog), 0.5f, 0.5f);
        }
コード例 #2
0
    private void OfflineGrow_Step2(MonsterData monsterData)
    {
        MonsterClientMaster monsterMaster = monsterData.GetMonsterMaster();
        string modelId                 = monsterMaster.Group.modelId;
        string growStep                = monsterMaster.Group.growStep;
        string userMonsterId           = monsterData.GetMonster().userMonsterId;
        string monsterEvolutionRouteId = monsterData.GetMonster().monsterEvolutionRouteId;

        foreach (GameWebAPI.RespDataMA_GetMonsterEvolutionRouteM.MonsterEvolutionRouteM monsterEvolutionRouteM2 in MasterDataMng.Instance().RespDataMA_MonsterEvolutionRouteM.monsterEvolutionRouteM)
        {
            if (monsterEvolutionRouteId == monsterEvolutionRouteM2.monsterEvolutionRouteId)
            {
                monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(monsterEvolutionRouteM2.growthMonsterId);
                break;
            }
        }
        MonsterDataMng.Instance().GetMonsterDataList()[0].userMonster.growEndDate = string.Empty;
        monsterData.userMonster.ex                  = "0";
        monsterData.userMonster.hpAbilityFlg        = "0";
        monsterData.userMonster.attackAbilityFlg    = "0";
        monsterData.userMonster.defenseAbilityFlg   = "0";
        monsterData.userMonster.spAttackAbilityFlg  = "0";
        monsterData.userMonster.spDefenseAbilityFlg = "0";
        monsterData.userMonster.speedAbilityFlg     = "0";
        monsterData.userMonster.friendship          = "0";
        StatusValue statusValue = MonsterStatusData.GetStatusValue(monsterData.userMonster.monsterId, monsterData.userMonster.level);

        statusValue.luck = 1;
        monsterData.SetStatus(statusValue);
        monsterData.userMonster.userMonsterId = userMonsterId;
        ClassSingleton <MonsterUserDataMng> .Instance.UpdateUserMonsterData(monsterData.userMonster);

        ClassSingleton <GUIMonsterIconList> .Instance.RefreshList(MonsterDataMng.Instance().GetMonsterDataList());

        monsterData = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(userMonsterId);

        monsterMaster = monsterData.GetMonsterMaster();
        CutsceneDataEvolution cutsceneDataEvolution = new CutsceneDataEvolution();

        cutsceneDataEvolution.path           = "Cutscenes/Evolution";
        cutsceneDataEvolution.beforeModelId  = modelId;
        cutsceneDataEvolution.beforeGrowStep = growStep;
        cutsceneDataEvolution.afterModelId   = monsterMaster.Group.modelId;
        cutsceneDataEvolution.afterGrowStep  = monsterMaster.Group.growStep;
        cutsceneDataEvolution.endCallback    = delegate()
        {
            FarmCameraControlForCMD.On();
            CutSceneMain.FadeReqCutSceneEnd();
        };
        CutsceneDataEvolution cutsceneData = cutsceneDataEvolution;

        this.CallEvolutionCutScene(monsterData, cutsceneData);
    }
コード例 #3
0
    private void EndGrowSuccess(string userMonsterId, string beforeModelId, string beforeGrowStep)
    {
        ClassSingleton <GUIMonsterIconList> .Instance.RefreshList(MonsterDataMng.Instance().GetMonsterDataList());

        MonsterData userMonster = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(userMonsterId);

        MonsterClientMaster   monsterMaster         = userMonster.GetMonsterMaster();
        CutsceneDataEvolution cutsceneDataEvolution = new CutsceneDataEvolution();

        cutsceneDataEvolution.path           = "Cutscenes/Evolution";
        cutsceneDataEvolution.beforeModelId  = beforeModelId;
        cutsceneDataEvolution.beforeGrowStep = beforeGrowStep;
        cutsceneDataEvolution.afterModelId   = monsterMaster.Group.modelId;
        cutsceneDataEvolution.afterGrowStep  = monsterMaster.Group.growStep;
        cutsceneDataEvolution.endCallback    = delegate()
        {
            FarmCameraControlForCMD.On();
            CutSceneMain.FadeReqCutSceneEnd();
        };
        CutsceneDataEvolution cutsceneData = cutsceneDataEvolution;

        Loading.Invisible();
        this.CallEvolutionCutScene(userMonster, cutsceneData);
    }