static int AddCollider(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 1, typeof(UnityEngine.GameObject)); UnityEngine.GameObject o = UILuaTools.AddCollider(arg0); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetComponentsInChildren(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 1, typeof(UnityEngine.GameObject)); UIPanel[] o = UILuaTools.GetComponentsInChildren(arg0); ToLua.Push(L, o); return(1); } else if (count == 2) { UILuaTools obj = (UILuaTools)ToLua.CheckObject <UILuaTools>(L, 1); System.Type arg0 = ToLua.CheckMonoType(L, 2); UnityEngine.Component[] o = obj.GetComponentsInChildren(arg0); ToLua.Push(L, o); return(1); } else if (count == 3) { UILuaTools obj = (UILuaTools)ToLua.CheckObject <UILuaTools>(L, 1); System.Type arg0 = ToLua.CheckMonoType(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); UnityEngine.Component[] o = obj.GetComponentsInChildren(arg0, arg1); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UILuaTools.GetComponentsInChildren")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public string GetFuncName(string FuncName) { return(UILuaTools.GetFunName(FuncName) + "Click"); }