换音效

This commit is contained in:
SoulliesOfficial
2025-08-23 05:29:37 -04:00
parent 70b2a43824
commit 131b182f43
52 changed files with 553 additions and 242 deletions

View File

@@ -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();
}
}