AppLauncher.cs 555 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using Mono;
  4. using UnityEngine;
  5. public class AppLauncher : MonoBehaviour
  6. {
  7. void Start()
  8. {
  9. GameObject prefab = Resources.Load<GameObject>("Canvas");
  10. GameObject _gameObject = GameObject.Instantiate(prefab);
  11. UIManager.Instance.SetUIRoot(_gameObject);
  12. UIManager.Instance.LoadAndOpenPanel<StartPanel>(UIManager.UILayer.Middle);
  13. ConfigComponent.Instance.Preload();
  14. }
  15. // Update is called once per frame
  16. void Update()
  17. {
  18. }
  19. }