Example #1
0
 internal ScriptFunction(ScriptState luaState, int reference)
 {
     _reference = LuaCore.GetRef(luaState, reference);
     _luaState  = luaState;
 }
Example #2
0
 internal ScriptFunction(ScriptState luaState, ScriptFunctionHandler func)
 {
     _luaState  = luaState;
     _func      = func;
     _reference = -1;
 }
Example #3
0
 internal void Push(ScriptState luaState)
 {
     LuaCore.GlobalRawGet(luaState, _index);
 }