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); }
public override void SetData(CutsceneDataBase data) { CutsceneDataTicketGasha cutsceneDataTicketGasha = data as CutsceneDataTicketGasha; if (cutsceneDataTicketGasha != null) { this.endCallback = cutsceneDataTicketGasha.endCallback; this.bgmFileName = cutsceneDataTicketGasha.bgmFileName; this.backgroundSize = cutsceneDataTicketGasha.backgroundSize; this.allSkipButton.Initialize(); this.allSkipButton.AddAction(delegate { this.frameCT = this.startFadeOutFrame; this.StartFadeOut(); }); this.allSkipButton.Hide(); this.startFadeOutFrame = this.cardAnimIntervalFrame * cutsceneDataTicketGasha.gashaResult.Length + 10; this.effectTypeList = new string[cutsceneDataTicketGasha.gashaResult.Length]; for (int i = 0; i < cutsceneDataTicketGasha.gashaResult.Length; i++) { this.effectTypeList[i] = cutsceneDataTicketGasha.gashaResult[i].effectType; } } }