static public int methodWrapper(IntPtr l) { try { ObjectCache oc = ObjectCache.get(l); LuaCSFunction func = (LuaCSFunction)oc.get(l, 1); return(func(l)); } catch (Exception e) { return(error(l, e)); } }
public static int methodWrapper(IntPtr l) { int result; try { ObjectCache objectCache = ObjectCache.get(l); LuaCSFunction luaCSFunction = (LuaCSFunction)objectCache.get(l, 1); result = luaCSFunction(l); } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// lightobj is non-exported object used for re-get from c#, not for lua public static void pushLightObject(IntPtr l, object t) { ObjectCache oc = ObjectCache.get(l); oc.push(l, t, false); }
public static void pushObject(IntPtr l, Array o) { ObjectCache oc = ObjectCache.get(l); oc.push(l, o); }
public static void setBack(IntPtr l, object o) { ObjectCache t = ObjectCache.get(l); t.setBack(l, 1, o); }
static public object checkObj(IntPtr l, int p) { ObjectCache oc = ObjectCache.get(l); return(oc.get(l, p)); }
public void ClearObject(UnityEngine.Object obj) { ObjectCache oc = ObjectCache.get(L); oc.gc(obj); }