public override void SetData(CutsceneDataBase data) { base.transform.localPosition = new Vector3(0f, 10f, 0f); CutsceneDataGasha cutsceneDataGasha = data as CutsceneDataGasha; if (cutsceneDataGasha != null) { this.endCallback = cutsceneDataGasha.endCallback; this.allSkipButton.Initialize(); this.allSkipButton.AddAction(new Action(this.EndCutscene)); this.touchScreenButton.Initialize(); this.touchScreenButton.AddAction(new Action(this.EndCutscene)); this.scriptAnime.Initialize(this.cutsceneSound, this.subCamera, this.rareSignParticle, cutsceneDataGasha.modelIdList, cutsceneDataGasha.growStepList); } }
protected void SetGashaCutScene(GameWebAPI.RespDataGA_ExecGacha gashaResult, bool isTutorial) { GameWebAPI.RespDataGA_ExecGacha.GachaResultMonster[] userMonsterList = gashaResult.userMonsterList; string[] array = new string[userMonsterList.Length]; string[] array2 = new string[userMonsterList.Length]; for (int i = 0; i < userMonsterList.Length; i++) { MonsterUserData userMonster = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(userMonsterList[i].userMonsterId); GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = userMonster.GetMonsterMaster().Group; array[i] = group.modelId; array2[i] = group.growStep; } CutsceneDataGasha cutsceneDataGasha = new CutsceneDataGasha(); cutsceneDataGasha.path = "Cutscenes/Gasha"; cutsceneDataGasha.modelIdList = array; cutsceneDataGasha.growStepList = array2; CutsceneDataGasha cutsceneDataGasha2 = cutsceneDataGasha; if (ExecGashaMonster.< > f__mg$cache0 == null) { ExecGashaMonster.< > f__mg$cache0 = new Action(CutSceneMain.FadeReqCutSceneEnd); } cutsceneDataGasha2.endCallback = ExecGashaMonster.< > f__mg$cache0; CutsceneDataGasha cutsceneDataGasha3 = cutsceneDataGasha; Loading.Invisible(); if (isTutorial) { this.showedGashaResultAction = new Action(Singleton <TutorialObserver> .Instance.ResumeScript); } CutsceneDataBase cutsceneData = cutsceneDataGasha3; if (ExecGashaMonster.< > f__mg$cache1 == null) { ExecGashaMonster.< > f__mg$cache1 = new Action(CMD_MonsterGashaResult.CreateDialog); } CutSceneMain.FadeReqCutScene(cutsceneData, ExecGashaMonster.< > f__mg$cache1, null, new Action <int>(this.OnShowedGashaResultDialog), 0.5f, 0.5f); }