using LitJson; using System.Collections; using System.Collections.Generic; using UnityEngine; using XRTool.Util; public class GameScene : MonoSingleton { public GameObject o20; public GameObject o21; public GameObject Canvas; private void Start() { } public List UIList = new List(); public void ShowScenes() { //获取所有场景 并初始化UI (UserSceneUI.Instance).show(); UIManager.Instance.HideUI(UINameConfig.LoadingPanel); UIManager.Instance.HideUI(UINameConfig.LoginPanel); o20.SetActive(true); o21.SetActive(false); o20.transform.parent.gameObject.SetActive(true); } public void gotoScenes(string id) { UserSceneManager.Instance.gotoScene(id); } }