Exemple #1
0
 public static clientapp GetInstance()
 {
     if (ins == null)
     {
         GameObject kbe_clientapp = new GameObject("kbe_clientapp");
         ins = kbe_clientapp.AddComponent <clientapp>();
     }
     return(ins);
 }
Exemple #2
0
    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);
    }