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

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