// 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); }
public void Close() { loop.Destroy(); loop = null; lua.Dispose(); lua = null; loader = null; }
// 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); }