Exemple #1
0
 public void Initialize(CutsceneSound sound, GameObject beforeMonster, GameObject afterMonster)
 {
     this.afterMonsterMaterialList = CutsceneCommon.GetMaterial(afterMonster);
     this.sound         = sound;
     this.beforeMonster = beforeMonster;
     this.afterMonster  = afterMonster;
 }
        private IEnumerator CutA()
        {
            yield return(new WaitForSeconds(0.5f));

            this.sound.PlaySE("SEInternal/Cutscene/se_213");
            yield return(new WaitForSeconds(0.5f));

            for (int i = 0; i < this.laserEffectList.Length; i++)
            {
                this.laserEffectList[i].StartMoveEffect();
            }
            yield return(new WaitForSeconds(0.3f));

            this.baseMonsterMaterialList = CutsceneCommon.GetMaterial(this.baseMonster);
            CutsceneCommon.ChangeMaterial(this.baseMonster, this.wireMaterial);
            this.sphereParticle.Play();
            yield return(new WaitForSeconds(0.3f));

            for (int j = 0; j < this.laserEffectList.Length; j++)
            {
                this.laserEffectList[j].gameObject.SetActive(false);
            }
            yield return(new WaitForSeconds(0.8f));

            CutsceneCommon.SetWireFrameRendering(this.baseMonster);
            yield return(new WaitForSeconds(1.6f));

            this.auraParticle.Play();
            yield return(new WaitForSeconds(0.2f));

            this.circleParticle.Play();
            yield return(new WaitForSeconds(1.5f));

            CutsceneCommon.ResetRendering(this.baseMonster, this.baseMonsterMaterialList);
            yield break;
        }
        private IEnumerator CutA()
        {
            this.circleParticle.Play();
            yield return(new WaitForSeconds(0.2f));

            this.sound.PlaySE("SEInternal/Cutscene/se_221");
            yield return(new WaitForSeconds(1.5f));

            this.baseMonsterMaterialList     = CutsceneCommon.GetMaterial(this.baseMonster);
            this.materialMonsterMaterialList = CutsceneCommon.GetMaterial(this.materialMonster);
            CutsceneCommon.ChangeMaterial(this.baseMonster, this.wireMaterial);
            CutsceneCommon.ChangeMaterial(this.materialMonster, this.wireMaterial);
            yield return(new WaitForSeconds(1.2f));

            CutsceneCommon.SetWireFrameRendering(this.baseMonster);
            CutsceneCommon.SetWireFrameRendering(this.materialMonster);
            yield return(new WaitForSeconds(0.5f));

            iTween.MoveTo(this.baseMonster, iTween.Hash(new object[]
            {
                "x",
                0f,
                "time",
                2.2f,
                "islocal",
                true
            }));
            iTween.MoveTo(this.materialMonster, iTween.Hash(new object[]
            {
                "x",
                0f,
                "time",
                2.2f,
                "islocal",
                true
            }));
            yield return(new WaitForSeconds(0.8f));

            this.auraParticle.Play();
            yield return(new WaitForSeconds(0.2f));

            this.cameraSwitcher.EnableMainCamera();
            CutsceneCommon.ResetRendering(this.baseMonster, this.baseMonsterMaterialList);
            CutsceneCommon.ResetRendering(this.materialMonster, this.materialMonsterMaterialList);
            this.baseMonster.SetActive(false);
            this.materialMonster.SetActive(false);
            yield return(new WaitForSeconds(2f));

            this.digitama.SetActive(true);
            if (this.rareUp)
            {
                yield return(new WaitForSeconds(2f));

                this.sound.PlaySE("SEInternal/Cutscene/se_214");
                this.arousalAnimator.SetActive(true);
                this.arousalGlitter.Play();
                yield return(new WaitForSeconds(0.45f));

                yield return(new WaitForSeconds(0.5f));

                this.stretchLightParticle.Play();
            }
            yield return(new WaitForSeconds(1f));

            this.tapScreenButton.SetActive(true);
            this.allSkipButton.SetActive(false);
            yield break;
        }