static int SetTrails(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 2);
            UnityEngine.ParticleSystem        obj  = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
            UnityEngine.ParticleSystem.Trails arg0 = StackTraits <UnityEngine.ParticleSystem.Trails> .Check(L, 2);

            obj.SetTrails(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }