111
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user