This commit is contained in:
SoulliesOfficial
2025-08-27 21:45:18 -04:00
parent 131b182f43
commit 4031b29245
266 changed files with 26272 additions and 18257 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;
using UnityEngine.Serialization;
namespace Ichni.UI
{
@@ -12,12 +13,30 @@ namespace Ichni.UI
public List<ParticleSystem> logoParticles;
public ParticleSystem floatingParticles;
public GameObject peWarningWindow;
public GameObject contentWindow;
protected override void Awake()
{
base.Awake();
audioContainer = GetComponent<AudioContainer>();
}
private void Start()
{
Sequence peWarningSequence = DOTween.Sequence();
peWarningSequence.Append(peWarningWindow.GetComponent<CanvasGroup>().DOFade(1f, 0.5f));
peWarningSequence.AppendInterval(1f);
peWarningSequence.Append(peWarningWindow.GetComponent<CanvasGroup>().DOFade(0f, 0.5f).OnStart(() => contentWindow.SetActive(true)));
peWarningSequence.AppendCallback(() =>
{
peWarningWindow.SetActive(false);
logoParticles.ForEach(p => p.Play());
floatingParticles.Play();
});
peWarningSequence.Play();
}
public void TouchToStart()
{
audioContainer.PlaySoundFX("TouchToStart");