using System.Collections.Generic; using UnityEngine; using XFrame.Core.Localization; using XFrame.Core.UI; using XFrame.Core.Utils; public class GameMain1 : MonoBehaviour { public static GameMain1 Intance { get; private set; } private void Awake() { //保持只有一个 if (Intance == null) { Intance = this; } else if (Intance != this) { Destroy(this.gameObject); } } public List itemDatas = new List(); internal string text; //public string text = null; private void Start() { GameObject.Find("UIRoot2").SetActive(false); Singleton.Create().Language = Localization.CHINESE; //XUIPanel.ShowPanel(); XUIPanel.ShowPanel(); } }