static int OnLateUpdate(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.Task>(L, 1); obj.OnLateUpdate(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnControllerColliderHit(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.Task>(L, 1); UnityEngine.ControllerColliderHit arg0 = (UnityEngine.ControllerColliderHit)ToLua.CheckObject <UnityEngine.ControllerColliderHit>(L, 2); obj.OnControllerColliderHit(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetUtility(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.Task>(L, 1); float o = obj.GetUtility(); LuaDLL.lua_pushnumber(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
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)); } }
static int ReplaceAddChild(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); BehaviorDesigner.Runtime.Tasks.ParentTask obj = (BehaviorDesigner.Runtime.Tasks.ParentTask)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.ParentTask>(L, 1); BehaviorDesigner.Runtime.Tasks.Task arg0 = (BehaviorDesigner.Runtime.Tasks.Task)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.Task>(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.ReplaceAddChild(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_Disabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.Disabled = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Disabled on a nil value")); } }
static int set_ReferenceID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.ReferenceID = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ReferenceID on a nil value")); } }
static int set_FriendlyName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)o; string arg0 = ToLua.CheckString(L, 2); obj.FriendlyName = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index FriendlyName on a nil value")); } }
static int set_Owner(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)o; BehaviorDesigner.Runtime.Behavior arg0 = (BehaviorDesigner.Runtime.Behavior)ToLua.CheckObject <BehaviorDesigner.Runtime.Behavior>(L, 2); obj.Owner = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Owner on a nil value")); } }
static int set_Transform(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)o; UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2); obj.Transform = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Transform on a nil value")); } }
static int set_GameObject(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)o; UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject)); obj.GameObject = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index GameObject on a nil value")); } }
static int get_Disabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)o; bool ret = obj.Disabled; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Disabled on a nil value")); } }
static int get_ReferenceID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)o; int ret = obj.ReferenceID; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ReferenceID on a nil value")); } }
static int get_FriendlyName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)o; string ret = obj.FriendlyName; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index FriendlyName on a nil value")); } }
static int get_Owner(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)o; BehaviorDesigner.Runtime.Behavior ret = obj.Owner; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Owner on a nil value")); } }