集成自LuaFileUtils,重写里面的ReadFile,
Inheritance: LuaInterface.LuaFileUtils
Example #1
0
        // Use this for initialization
        void Awake()
        {
            DontDestroyOnLoad(this);
            loader = new LuaLoader();
            lua    = new LuaState();
            this.OpenLibs();
            lua.LuaSetTop(0);

            LuaBinder.Bind(lua);
            LuaCoroutine.Register(lua, this);
        }
Example #2
0
		public void Close() {
			loop.Destroy();
			loop = null;

			lua.Dispose();
			lua = null;
			loader = null;
		}
Example #3
0
		// Use this for initialization
		void Awake() {
			DontDestroyOnLoad (this);
			loader = new LuaLoader();
			lua = new LuaState();
			this.OpenLibs();
			lua.LuaSetTop(0);

			LuaBinder.Bind(lua);
			LuaCoroutine.Register(lua, this);
		}