add admin panel / AR level
This commit is contained in:
@@ -7,17 +7,20 @@ using DG.Tweening;
|
||||
public class MainMenu : MonoBehaviour
|
||||
{
|
||||
[SerializeField] CanvasGroup _splash;
|
||||
[SerializeField] GameObject _welcomeWarning;
|
||||
[SerializeField] GameObject _authorization;
|
||||
[SerializeField] UIMenu _warning;
|
||||
|
||||
private IEnumerator Start()
|
||||
{
|
||||
_authorization.SetActive(false);
|
||||
_welcomeWarning.SetActive(false);
|
||||
_splash.gameObject.SetActive(true);
|
||||
|
||||
var canvases = GetComponentsInChildren<UIMenu>();
|
||||
foreach(var menu in canvases)
|
||||
menu.gameObject.SetActive(false);
|
||||
|
||||
yield return new WaitForSeconds(3);
|
||||
|
||||
_welcomeWarning.SetActive(true);
|
||||
_warning.gameObject.SetActive(true);
|
||||
|
||||
_splash.DOFade(0, .5f)
|
||||
.SetEase(Ease.Linear)
|
||||
.OnComplete(() => _splash.gameObject.SetActive(false));
|
||||
|
||||
Reference in New Issue
Block a user