public LuaScriptMgr() { Instance = this; lua = new LuaState(); lua.OpenLibs(LuaDLL.luaopen_pb); lua.LuaSetTop(0); }
public void Dispose() { if (state != null) { state.LuaSetTop(top); state = null; } }
// Use this for initialization void Awake() { loader = new LuaLoader(); lua = new LuaState(); this.OpenLibs(); lua.LuaSetTop(0); LuaBinder.Bind(lua); LuaCoroutine.Register(lua, this); }
protected void Init() { InitLoader(); luaState = new LuaState(); OpenLibs(); luaState.LuaSetTop(0); Bind(); LoadLuaFiles(); }