36 lines
1.0 KiB
C#
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();
|
|
}
|
|
}
|
|
} |