GameScene.cs 832 B

1234567891011121314151617181920212223242526272829303132
  1. using LitJson;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using XRTool.Util;
  6. public class GameScene : MonoSingleton<GameScene>
  7. {
  8. public GameObject o20;
  9. public GameObject o21;
  10. public GameObject Canvas;
  11. private void Start()
  12. {
  13. }
  14. public List<GameObject> UIList = new List<GameObject>();
  15. public void ShowScenes()
  16. {
  17. //��ȡ���г��� ����ʼ��UI
  18. (UserSceneUI.Instance).show();
  19. UIManager.Instance.HideUI(UINameConfig.LoadingPanel);
  20. UIManager.Instance.HideUI(UINameConfig.LoginPanel);
  21. o20.SetActive(false);
  22. o21.SetActive(false);
  23. o20.transform.parent.gameObject.SetActive(true);
  24. }
  25. public void gotoScenes(string id)
  26. {
  27. UserSceneManager.Instance.gotoScene(id);
  28. }
  29. }