public static clientapp GetInstance() { if (ins == null) { GameObject kbe_clientapp = new GameObject("kbe_clientapp"); ins = kbe_clientapp.AddComponent <clientapp>(); } return(ins); }
public override void initKBEngine() { if (_instance != null) { throw new Exception("clientapp的实例已存在!!"); } _instance = this; _unityThread = Thread.CurrentThread; base.initKBEngine(); UIManager.Instance.Init(); //============程序入口=============// LogicSceneMgr.Instance.Load(LogicSceneMgr.SceneType.LOGON); }