private void EndSuccession(string materialMonsterModelId, string materialMonsterGrowStep) { string[] userMonsterIdList = this.selecterPartnerDigimons.Select((MonsterData x) => x.userMonster.userMonsterId).ToArray <string>(); ClassSingleton <MonsterUserDataMng> .Instance.DeleteUserMonsterData(userMonsterIdList); ChipDataMng.GetUserChipSlotData().RemoveMonsterChipData(userMonsterIdList); ClassSingleton <GUIMonsterIconList> .Instance.RefreshList(MonsterDataMng.Instance().GetMonsterDataList()); this.InitMonsterList(false); CutsceneDataInheritance cutsceneDataInheritance = new CutsceneDataInheritance(); cutsceneDataInheritance.path = "Cutscenes/Inheritance"; cutsceneDataInheritance.baseModelId = this.baseDigimon.GetMonsterMaster().Group.modelId; cutsceneDataInheritance.materialModelId = materialMonsterModelId; CutsceneDataInheritance cutsceneDataInheritance2 = cutsceneDataInheritance; if (CMD_Succession.< > f__mg$cache1 == null) { CMD_Succession.< > f__mg$cache1 = new Action(CutSceneMain.FadeReqCutSceneEnd); } cutsceneDataInheritance2.endCallback = CMD_Succession.< > f__mg$cache1; CutsceneDataInheritance cutsceneData = cutsceneDataInheritance; Loading.Invisible(); CutSceneMain.FadeReqCutScene(cutsceneData, new Action(this.StartCutSceneCallBack), null, delegate(int index) { this.detailedWindow.StartAnimation(); RestrictionInput.EndLoad(); }, 0.5f, 0.5f); }
public override void SetData(CutsceneDataBase data) { CutsceneDataInheritance cutsceneDataInheritance = data as CutsceneDataInheritance; if (cutsceneDataInheritance != null) { this.endCallback = cutsceneDataInheritance.endCallback; this.allSkipButton.Initialize(); this.allSkipButton.AddAction(new Action(this.EndCutscene)); this.touchScreenButton.Initialize(); this.touchScreenButton.AddAction(new Action(this.EndCutscene)); MaterialController[] componentsInChildren = base.GetComponentsInChildren <MaterialController>(); foreach (MaterialController materialController in componentsInChildren) { materialController.isRealtimeUpdate = true; } GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.baseMonsterParentTransform, cutsceneDataInheritance.baseModelId); gameObject.transform.localPosition = Vector3.zero; gameObject.transform.localRotation = Quaternion.identity; GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.materialMonsterParentTransform, cutsceneDataInheritance.materialModelId); gameObject2.transform.localPosition = Vector3.zero; gameObject2.transform.localRotation = Quaternion.identity; CharacterParams component = gameObject.GetComponent <CharacterParams>(); this.cameraTarget = component.characterCenterTarget; CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera); CutsceneCommon.SetBillBoardCamera(gameObject2, this.mainCamera); CharacterParams component2 = gameObject2.GetComponent <CharacterParams>(); this.animeEvent.Initialize(this.cutsceneSound, component, component2); } }