Ejemplo n.º 1
0
        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 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)
    {
        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);
        }
    }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
    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);
        }
    }