static int GetComponents(IntPtr L)
{
#if UNITY_EDITOR
ToluaProfiler.AddCallRecord("UnityEngine.Component.Register");
#endif
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2)
{
UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject <UnityEngine.Component>(L, 1);
System.Type arg0 = ToLua.CheckMonoType(L, 2);
UnityEngine.Component[] o = obj.GetComponents(arg0);
ToLua.Push(L, o);
return(1);
}
else if (count == 3)
{
UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject <UnityEngine.Component>(L, 1);
System.Type arg0 = ToLua.CheckMonoType(L, 2);
System.Collections.Generic.List <UnityEngine.Component> arg1 = (System.Collections.Generic.List <UnityEngine.Component>)ToLua.CheckObject(L, 3, typeof(System.Collections.Generic.List <UnityEngine.Component>));
obj.GetComponents(arg0, arg1);
return(0);
}
else
{
return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.GetComponents"));
}
}
catch (Exception e)
{
return(LuaDLL.toluaL_exception(L, e));
}
}