protected void DoInit(LuaState state, LuaSvrFlag flag) { state.OpenLibrary(); LuaValueType.Register(state.StatePointer); if ((flag & LuaSvrFlag.LSF_EXTLIB) != 0) { state.OpenExternalLibrary(); } if ((flag & LuaSvrFlag.LSF_3RDDLL) != 0) { Lua3rdDLL.Open(state.StatePointer); } }
public IEnumerator BindUnity(Action <int> tickAction, Action onComplete) { yield return(LuaSvr.DoBind(StatePointer, tickAction, onComplete)); LuaValueType.Register(StatePointer); }
public void BindUnity() { LuaSvr.DoBind(StatePointer); LuaValueType.Register(StatePointer); }