public static Delegate UnityEngine_Camera_CameraCallback(LuaFunction func) { if (func == null) { UnityEngine.Camera.CameraCallback fn = delegate { }; return(fn); } UnityEngine.Camera.CameraCallback d = (new UnityEngine_Camera_CameraCallback_Event(func)).Call; return(d); }
public static Delegate UnityEngine_Camera_CameraCallback(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.Camera.CameraCallback fn = delegate(UnityEngine.Camera param0) { }; return(fn); } if (!flag) { UnityEngine.Camera.CameraCallback d = (new UnityEngine_Camera_CameraCallback_Event(func)).Call; return(d); } else { UnityEngine.Camera.CameraCallback d = (new UnityEngine_Camera_CameraCallback_Event(func, self)).CallWithSelf; return(d); } }
static internal int checkDelegate(IntPtr l, int p, out UnityEngine.Camera.CameraCallback ua) { int op = extractFunction(l, p); if (LuaDLL.lua_isnil(l, p)) { ua = null; return(op); } else if (LuaDLL.lua_isuserdata(l, p) == 1) { ua = (UnityEngine.Camera.CameraCallback)checkObj(l, p); return(op); } if (LuaDLL.lua_isnil(l, -1)) { ua = null; return(op); } LuaDelegate ld; checkType(l, -1, out ld); LuaDLL.lua_pop(l, 1); if (ld.d != null) { ua = (UnityEngine.Camera.CameraCallback)ld.d; return(op); } l = LuaState.get(l).L; ua = (UnityEngine.Camera a1) => { int error = pushTry(l); pushValue(l, a1); ld.pcall(1, error); LuaDLL.lua_settop(l, error - 1); }; ld.d = ua; return(op); }
public UnityEngine.Camera.CameraCallback UnityEngine_Camera_CameraCallback(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.Camera.CameraCallback fn = delegate(UnityEngine.Camera param0) { }; return(fn); } if (!flag) { UnityEngine_Camera_CameraCallback_Event target = new UnityEngine_Camera_CameraCallback_Event(func); UnityEngine.Camera.CameraCallback d = target.Call; target.method = d.Method; return(d); } else { UnityEngine_Camera_CameraCallback_Event target = new UnityEngine_Camera_CameraCallback_Event(func, self); UnityEngine.Camera.CameraCallback d = target.CallWithSelf; target.method = d.Method; return(d); } }
void Push_UnityEngine_Camera_CameraCallback(IntPtr L, UnityEngine.Camera.CameraCallback o) { ToLua.Push(L, o); }
void TakeScreenshot(UnityEngine.Camera.CameraCallback callback) { string filePath = MakeScreenshot(); StartCoroutine(WaitForScreenshotSave(filePath)); }
public static Delegate UnityEngine_Camera_CameraCallback_Self(LuaFunction func, LuaTable self) { UnityEngine.Camera.CameraCallback d = (new UnityEngine_Camera_CameraCallback_Event_Self(func, self)).Call; return(d); }