add ar game scene / add ui
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Zenject;
|
||||
using UnityEngine;
|
||||
using DG.Tweening;
|
||||
|
||||
@@ -9,6 +10,8 @@ public class MainMenu : MonoBehaviour
|
||||
[SerializeField] CanvasGroup _splash;
|
||||
[SerializeField] UIMenu _warning;
|
||||
|
||||
[Inject] private readonly SceneLoadingService _sceneLoadingService;
|
||||
|
||||
private IEnumerator Start()
|
||||
{
|
||||
_splash.gameObject.SetActive(true);
|
||||
@@ -25,4 +28,9 @@ public class MainMenu : MonoBehaviour
|
||||
.SetEase(Ease.Linear)
|
||||
.OnComplete(() => _splash.gameObject.SetActive(false));
|
||||
}
|
||||
|
||||
public async void LoadingNextLevel()
|
||||
{
|
||||
await _sceneLoadingService.LoadSceneAsync(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user