static int IsAlive(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 1)
{
UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
bool o = obj.IsAlive();
LuaDLL.lua_pushboolean(L, o);
return(1);
}
else if (count == 2)
{
UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
bool o = obj.IsAlive(arg0);
LuaDLL.lua_pushboolean(L, o);
return(1);
}
else
{
return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.IsAlive"));
}
}
catch (Exception e)
{
return(LuaDLL.toluaL_exception(L, e));
}
}