first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user