static int OnPause(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.Task>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.OnPause(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }