换音效
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DG.Tweening;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.UI
|
||||
@@ -9,6 +10,8 @@ namespace Ichni.UI
|
||||
{
|
||||
public AudioContainer audioContainer;
|
||||
|
||||
public List<ParticleSystem> logoParticles;
|
||||
public ParticleSystem floatingParticles;
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
@@ -18,7 +21,15 @@ namespace Ichni.UI
|
||||
public void TouchToStart()
|
||||
{
|
||||
audioContainer.PlaySoundFX("TouchToStart");
|
||||
|
||||
FadeOut();
|
||||
foreach (ParticleSystem particle in logoParticles)
|
||||
{
|
||||
particle.GetComponent<Renderer>().material.DOFloat(0f, "_MainAlpha", 0.5f).Play();
|
||||
}
|
||||
|
||||
floatingParticles.GetComponent<Renderer>().material.DOColor(Color.clear, "_BaseColor", 0.5f).Play();
|
||||
|
||||
ChapterSelectionManager.instance.chapterSelectionUIPage.FadeIn();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user