123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System.Collections;
- using System.Collections.Generic;
- using Mono;
- using Mono.UI.Core;
- using UnityEngine;
- using UnityEngine.SceneManagement;
- public class AppLauncher : MonoBehaviour
- {
- private bool _isStart;
- void Start()
- {
- DontDestroyOnLoad(this);
- GameObject prefab = Resources.Load<GameObject>("Canvas");
- GameObject _gameObject = GameObject.Instantiate(prefab);
- UIManager.Instance.SetUIRoot(_gameObject);
- ConfigComponent.Instance.Preload();
- _isStart = true;
- _timer = 0;
-
- TimeComponent.Instance.AddTimer(10, () => { UIManager.Instance.LoadAndOpenPanel<StartPanel>(UIManager.UILayer.Middle); });
- UIManager.Instance.PlayBGM("title");
- }
- private float _timer;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
|