Esempio n. 1
0
        public void ReloadResource()
        {
            Log.i("ResMgr Reset!!!", Log.Tag.RES);
            ResLoad.clearCach();
            ResLoad.init(this);

            /*if (mUseLua)
             * {
             *  LuaRoot.dirty = true;
             *  GetComponent<LuaRoot>().Init();
             * }*/
        }
Esempio n. 2
0
        IEnumerator Start()
        {
            yield return(new WaitForSeconds(mStartDelay));

            if (mUseLua)
            {
                gameObject.AddComponent <LuaRoot>();
            }
            Application.targetFrameRate = 60;
            Application.runInBackground = true;
            if (EventSystem.current != null)
            {
                DontDestroyOnLoad(EventSystem.current.gameObject);
            }
            ResLoad.init(this);
            GameStart();
        }