26 lines
659 B
C#
26 lines
659 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Cysharp.Threading.Tasks;
|
|
using UnityEngine;
|
|
using DG.Tweening;
|
|
|
|
public class MainMenu : MonoBehaviour
|
|
{
|
|
[SerializeField] CanvasGroup _splash;
|
|
[SerializeField] GameObject _welcomeWarning;
|
|
[SerializeField] GameObject _authorization;
|
|
|
|
private IEnumerator Start()
|
|
{
|
|
_authorization.SetActive(false);
|
|
_welcomeWarning.SetActive(false);
|
|
|
|
yield return new WaitForSeconds(3);
|
|
|
|
_welcomeWarning.SetActive(true);
|
|
_splash.DOFade(0, .5f)
|
|
.SetEase(Ease.Linear)
|
|
.OnComplete(() => _splash.gameObject.SetActive(false));
|
|
}
|
|
}
|