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); } }
public override void SetData(CutsceneDataBase data) { CutsceneDataMedalInherit cutsceneDataMedalInherit = data as CutsceneDataMedalInherit; if (cutsceneDataMedalInherit != null) { this.endCallback = cutsceneDataMedalInherit.endCallback; this.allSkipButton.Initialize(); this.allSkipButton.AddAction(new Action(this.EndCutscene)); this.touchScreenButton.Initialize(); this.touchScreenButton.AddAction(new Action(this.EndCutscene)); GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.baseMonsterParentTransform, cutsceneDataMedalInherit.baseModelId); gameObject.transform.localPosition = Vector3.zero; gameObject.transform.localRotation = Quaternion.identity; GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.materialMonsterParentTransform, cutsceneDataMedalInherit.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); } }
public override void SetData(CutsceneDataBase data) { CutsceneDataJogress cutsceneDataJogress = data as CutsceneDataJogress; if (cutsceneDataJogress != null) { this.endCallback = cutsceneDataJogress.endCallback; this.allSkipButton.Initialize(); this.allSkipButton.AddAction(new Action(this.EndCutscene)); this.touchScreenButton.Initialize(); this.touchScreenButton.AddAction(new Action(this.EndCutscene)); GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.beforeMonsterParentTransform, cutsceneDataJogress.beforeModelId); gameObject.transform.localPosition = Vector3.zero; GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.partnerMonsterParentTransform, cutsceneDataJogress.partnerModelId); gameObject2.transform.localPosition = Vector3.zero; GameObject gameObject3 = CutsceneCommon.LoadMonsterModel(this.afterMonsterParentTransform, cutsceneDataJogress.afterModelId); gameObject3.transform.localPosition = Vector3.zero; gameObject3.SetActive(false); this.afterMonsterCharaParam = gameObject3.GetComponent <CharacterParams>(); CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera); CutsceneCommon.SetBillBoardCamera(gameObject2, this.mainCamera); CutsceneCommon.SetBillBoardCamera(gameObject3, this.mainCamera); this.animeEvent.Initialize(this.cutsceneSound, gameObject, gameObject2, gameObject3); } }
public override void SetData(CutsceneDataBase data) { CutsceneDataFusion cutsceneDataFusion = data as CutsceneDataFusion; if (cutsceneDataFusion != null) { base.transform.localPosition = new Vector3(0f, 10f, 0f); this.endCallback = cutsceneDataFusion.endCallback; this.allSkipButton.Initialize(); this.allSkipButton.AddAction(new Action(this.EndCutscene)); this.touchScreenButton.Initialize(); this.touchScreenButton.AddAction(new Action(this.EndCutscene)); GameObject gameObject = CutsceneCommon.LoadMonsterModel(base.transform, cutsceneDataFusion.baseModelId); gameObject.transform.localPosition = new Vector3(-1.5f, 0f, 0f); GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(base.transform, cutsceneDataFusion.materialModelId); gameObject2.transform.localPosition = new Vector3(1.5f, 0f, 0f); CharacterParams component = gameObject.GetComponent <CharacterParams>(); component.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null); component = gameObject2.GetComponent <CharacterParams>(); component.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null); GameObject gameObject3 = CutsceneCommon.LoadMonsterModel(base.transform, cutsceneDataFusion.eggModelId); gameObject3.transform.localPosition = Vector3.zero; gameObject3.SetActive(false); CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera); CutsceneCommon.SetBillBoardCamera(gameObject2, this.mainCamera); this.scriptAnime.Initialize(this.cutsceneSound, base.transform.position, gameObject, gameObject2, gameObject3, cutsceneDataFusion.upArousal, this.allSkipButton.gameObject); } }
public void SkipAnimation() { AppCoroutine.Stop(this.animationTextImage, false); GashaAnimationCommon.PlayParticle(this.circleParticleRoot); this.subCamera.fieldOfView = 30f; this.subCamera.transform.localPosition = new Vector3(2f, 1f, 0f); if (MonsterGrowStepData.IsUltimateScope(this.growStep)) { this.mainCamera.backgroundColor = this.bgColorRareHigh; this.subCamera.backgroundColor = this.bgColorRareHigh; } CharacterParams component = this.gashaMonster.GetComponent <CharacterParams>(); if (!this.gashaMonster.activeSelf) { this.gashaMonster.SetActive(true); component.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null); CutsceneCommon.SetBillBoardCamera(this.gashaMonster, this.subCamera); } this.cameraSwitcher.SetLookAtObject(component.characterFaceCenterTarget); if (!SoundMng.Instance().IsPlayingSE_Ex(this.seHandle1) && !SoundMng.Instance().IsPlayingSE_Ex(this.seHandle2)) { this.sound.PlaySE("SEInternal/Cutscene/se_214"); } }
public void SkipAnimation() { if (!this.growAnimator.GetCurrentAnimatorStateInfo(0).IsTag("GrowStep")) { this.StartAnimationGrowStepText(); } this.cameraSwitcher.EnableMainCamera(); CutsceneCommon.SetBillBoardCamera(this.gashaMonster, this.mainCamera); CharacterParams component = this.gashaMonster.GetComponent <CharacterParams>(); component.PlayAnimation(CharacterAnimationType.win, SkillType.Attack, 0, null, null); }
public IEnumerator StartAnimation() { this.StartAnimationGrowStepText(); yield return(new WaitForSeconds(2f)); this.cameraSwitcher.EnableMainCamera(); CutsceneCommon.SetBillBoardCamera(this.gashaMonster, this.mainCamera); CharacterParams charaParam = this.gashaMonster.GetComponent <CharacterParams>(); charaParam.PlayAnimation(CharacterAnimationType.win, SkillType.Attack, 0, null, null); base.EndCallback(); yield break; }
public override void SetData(CutsceneDataBase data) { CutsceneDataAwakening cutsceneDataAwakening = data as CutsceneDataAwakening; if (cutsceneDataAwakening != null) { this.endCallback = cutsceneDataAwakening.endCallback; this.allSkipButton.Initialize(); this.allSkipButton.AddAction(new Action(this.EndCutscene)); this.touchScreenButton.Initialize(); this.touchScreenButton.AddAction(new Action(this.EndCutscene)); GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.monsterParent, cutsceneDataAwakening.modelId); gameObject.transform.localPosition = Vector3.zero; CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera); CharacterParams component = gameObject.GetComponent <CharacterParams>(); this.cameraTarget = component.characterCenterTarget; this.animeEvent.Initialize(this.cutsceneSound, component); } }
public override void SetData(CutsceneDataBase data) { CutsceneDataTraining cutsceneDataTraining = data as CutsceneDataTraining; if (cutsceneDataTraining != null) { this.endCallback = cutsceneDataTraining.endCallback; this.allSkipButton.Initialize(); this.allSkipButton.AddAction(new Action(this.EndCutscene)); GameObject gameObject = CutsceneCommon.LoadMonsterModel(base.transform, cutsceneDataTraining.baseModelId); gameObject.transform.localPosition = Vector3.zero; CharacterParams component = gameObject.GetComponent<CharacterParams>(); component.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null); CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera); this.cameraTransform = this.mainCamera.transform; this.cameraRotatePosition = base.transform; this.lookAtPosition = component.characterCenterTarget; this.workVector3 = Vector3.zero; this.scriptAnime.Initialize(this.cutsceneSound, gameObject, cutsceneDataTraining.materialNum, new Action(this.EndCutscene)); } }
public override void SetData(CutsceneDataBase data) { CutsceneDataVersionUp cutsceneDataVersionUp = data as CutsceneDataVersionUp; if (cutsceneDataVersionUp != null) { this.endCallback = cutsceneDataVersionUp.endCallback; this.allSkipButton.Initialize(); this.allSkipButton.AddAction(new Action(this.EndCutscene)); this.touchScreenButton.Initialize(); this.touchScreenButton.AddAction(new Action(this.EndCutscene)); GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.beforeMonsterParentTransform, cutsceneDataVersionUp.beforeModelId); gameObject.transform.localPosition = Vector3.zero; GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.afterMonsterParentTransform, cutsceneDataVersionUp.afterModelId); gameObject2.transform.localPosition = Vector3.zero; CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera); CutsceneCommon.SetBillBoardCamera(gameObject2, this.mainCamera); this.animeEvent.Initialize(this.cutsceneSound, this.mainCamera.transform, gameObject, gameObject2); } }
public override void SetData(CutsceneDataBase data) { CutsceneDataEvolution cutsceneDataEvolution = data as CutsceneDataEvolution; if (cutsceneDataEvolution != null) { this.endCallback = cutsceneDataEvolution.endCallback; this.allSkipButton.Initialize(); this.allSkipButton.AddAction(new Action(this.EndCutscene)); this.touchScreenButton.Initialize(); this.touchScreenButton.AddAction(new Action(this.EndCutscene)); GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.beforeMonsterParent, cutsceneDataEvolution.beforeModelId); CutsceneCommon.InitializeMonsterPosition(gameObject, cutsceneDataEvolution.beforeGrowStep); GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.afterMonsterParent, cutsceneDataEvolution.afterModelId); CutsceneCommon.InitializeMonsterPosition(gameObject2, cutsceneDataEvolution.afterGrowStep); CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera); CutsceneCommon.SetBillBoardCamera(gameObject2, this.mainCamera); this.animeEvent.Initialize(this.mainCamera.transform, this.cutsceneSound, gameObject, gameObject2); } }
public IEnumerator StartAnimation() { this.circleParticleRoot.Play(); this.subCamera.fieldOfView = 30f; this.subCamera.transform.localPosition = new Vector3(2f, 1f, 0f); if (MonsterGrowStepData.IsUltimateScope(this.growStep)) { this.mainCamera.backgroundColor = this.bgColorRareHigh; this.subCamera.backgroundColor = this.bgColorRareHigh; } this.gashaMonster.SetActive(true); CharacterParams charaParam = this.gashaMonster.GetComponent <CharacterParams>(); charaParam.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null); CutsceneCommon.SetBillBoardCamera(this.gashaMonster, this.subCamera); this.cameraSwitcher.SetLookAtObject(charaParam.characterFaceCenterTarget); if (MonsterGrowStepData.IsRipeScope(this.growStep)) { this.animationTextImage = this.StartAnimationRareTextImage("RareLow"); yield return(AppCoroutine.Start(this.animationTextImage, false)); } else if (MonsterGrowStepData.IsPerfectScope(this.growStep)) { this.animationTextImage = this.StartAnimationRareTextImage("RareMiddle"); yield return(AppCoroutine.Start(this.animationTextImage, false)); } else if (MonsterGrowStepData.IsUltimateScope(this.growStep)) { this.animationTextImage = this.StartAnimationRareTextImage("RareHigh"); yield return(AppCoroutine.Start(this.animationTextImage, false)); } else { yield return(null); } this.seHandle2 = this.sound.PlaySE("SEInternal/Cutscene/se_214"); base.EndCallback(); yield break; }
public override void SetData(CutsceneDataBase data) { CutsceneDataEvolutionUltimate cutsceneDataEvolutionUltimate = data as CutsceneDataEvolutionUltimate; if (cutsceneDataEvolutionUltimate != null) { this.endCallback = cutsceneDataEvolutionUltimate.endCallback; this.allSkipButton.Initialize(); this.allSkipButton.AddAction(new Action(this.EndCutscene)); this.touchScreenButton.Initialize(); this.touchScreenButton.AddAction(new Action(this.EndCutscene)); GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.beforeMonsterParent, cutsceneDataEvolutionUltimate.beforeModelId); gameObject.transform.localPosition = Vector3.zero; GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.afterMonsterParent, cutsceneDataEvolutionUltimate.afterModelId); gameObject2.transform.localPosition = Vector3.zero; CharacterParams component = gameObject2.GetComponent <CharacterParams>(); this.cameraTarget = component.characterCenterTarget; CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera); CutsceneCommon.SetBillBoardCamera(gameObject2, this.subCamera); this.animeEvent.Initialize(this.mainCamera.transform, this.cutsceneSound, gameObject, gameObject2); } }