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;
 }
Exemple #2
0
 public void ResetMonsterMaterial()
 {
     this.chaseFlag = false;
     if (this.afterMonsterMaterialList != null)
     {
         CutsceneCommon.ResetRendering(this.afterMonster, this.afterMonsterMaterialList);
     }
 }
Exemple #3
0
        private void Character3_LineOn()
        {
            this.afterMonster.SetActive(true);
            CharacterParams component = this.afterMonster.GetComponent <CharacterParams>();

            component.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null);
            this.afterMonsterMaterialList = CutsceneCommon.SetWireFrameRendering(this.afterMonster, this.wireMaterial);
        }
        private GameObject CreateMonster(string modelId)
        {
            GameObject gameObject = CutsceneCommon.LoadMonsterModel(base.transform, modelId);

            gameObject.transform.localPosition = Vector3.zero;
            CharacterParams component = gameObject.GetComponent <CharacterParams>();

            component.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null);
            gameObject.SetActive(false);
            return(gameObject);
        }
 public void ResetMonsterMaterial()
 {
     if (this.beforeMonsterMaterialList != null)
     {
         CutsceneCommon.ResetRendering(this.beforeMonster, this.beforeMonsterMaterialList);
     }
     if (this.afterMonsterMaterialList != null)
     {
         CutsceneCommon.ResetRendering(this.afterMonster, this.afterMonsterMaterialList);
     }
 }
 public void StopAnimation()
 {
     if (this.animationCoroutine != null)
     {
         base.StopCoroutine(this.animationCoroutine);
         this.animationCoroutine = null;
     }
     if (this.baseMonsterMaterialList != null)
     {
         CutsceneCommon.ResetRendering(this.baseMonster, this.baseMonsterMaterialList);
     }
 }
        public static void SetWireFrameRendering(GameObject modelObject)
        {
            List <SkinnedMeshRenderer> compoSMR = CommonRender3DRT.GetCompoSMR(modelObject);

            if (compoSMR != null)
            {
                foreach (SkinnedMeshRenderer skinMesh in compoSMR)
                {
                    CutsceneCommon.SetSubMeshRendering(skinMesh, MeshTopology.Lines);
                }
            }
        }
        public static void ResetRendering(GameObject modelObject)
        {
            List <SkinnedMeshRenderer> compoSMR = CommonRender3DRT.GetCompoSMR(modelObject);

            if (compoSMR != null)
            {
                for (int i = 0; i < compoSMR.Count; i++)
                {
                    CutsceneCommon.SetSubMeshRendering(compoSMR[i], MeshTopology.Triangles);
                }
            }
        }
        public static List <Material[]> SetWireFrameRendering(GameObject modelObject, Material wireFrameMaterial)
        {
            List <Material[]>          list     = new List <Material[]>();
            List <SkinnedMeshRenderer> compoSMR = CommonRender3DRT.GetCompoSMR(modelObject);

            if (compoSMR != null)
            {
                foreach (SkinnedMeshRenderer skinnedMeshRenderer in compoSMR)
                {
                    list.Add(skinnedMeshRenderer.materials);
                    Material[] array = new Material[skinnedMeshRenderer.materials.Length];
                    for (int i = 0; i < array.Length; i++)
                    {
                        array[i] = wireFrameMaterial;
                    }
                    skinnedMeshRenderer.materials = array;
                    CutsceneCommon.SetSubMeshRendering(skinnedMeshRenderer, MeshTopology.Lines);
                }
            }
            return(list);
        }
        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 void CharacterB_LineOff()
 {
     CutsceneCommon.ResetRendering(this.afterMonster);
 }
Exemple #12
0
 private void OffMaterialConvertB()
 {
     CutsceneCommon.ChangeMaterial(this.afterMonster, this.afterMonsterMaterialList);
 }
Exemple #13
0
 private void MaterialConverterB()
 {
     CutsceneCommon.ChangeMaterial(this.afterMonster, this.yellowDigitalPatternMaterial);
 }
Exemple #14
0
 private void MaterialConverterA()
 {
     CutsceneCommon.ChangeMaterial(this.beforeMonster, this.blueDigitalPatternMaterial);
 }
 private void MaterialResetB()
 {
     CutsceneCommon.ChangeMaterial(this.afterMonster, this.afterMonsterMaterialList);
 }
 private void CharacterA_LineOff()
 {
     CutsceneCommon.ResetRendering(this.beforeMonster, this.beforeMonsterMaterialList);
 }
 private void CharacterB_LineOn()
 {
     this.afterMonsterMaterialList = CutsceneCommon.SetWireFrameRendering(this.afterMonster, this.wireFrameMaterial);
 }
        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;
        }