add ar game scene / add ui

This commit is contained in:
2023-07-07 19:06:04 +05:00
parent 90a0d3358d
commit f89bf8319b
24 changed files with 1396 additions and 761 deletions
+8
View File
@@ -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);
}
}