Files
ichni_Official/Assets/Scripts/UI/StartPage/StartUIPage.cs
SoulliesOfficial 131b182f43 换音效
2025-08-23 05:29:37 -04:00

36 lines
1.0 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;
namespace Ichni.UI
{
public class StartUIPage : UIPageBase
{
public AudioContainer audioContainer;
public List<ParticleSystem> logoParticles;
public ParticleSystem floatingParticles;
protected override void Awake()
{
base.Awake();
audioContainer = GetComponent<AudioContainer>();
}
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();
}
}
}