/// <summary>
        /// Read the data using the reader.
        /// </summary>
        /// <param name="reader">Reader.</param>
        public override object Read(ISaveGameReader reader)
        {
            UnityEngine.ParticleSystem.ExternalForcesModule externalForcesModule = new UnityEngine.ParticleSystem.ExternalForcesModule();
            foreach (string property in reader.Properties)
            {
                switch (property)
                {
                case "enabled":
                    externalForcesModule.enabled = reader.ReadProperty <System.Boolean> ();
                    break;

                case "multiplier":
                    externalForcesModule.multiplier = reader.ReadProperty <System.Single> ();
                    break;
                }
            }
            return(externalForcesModule);
        }
 /// <summary>
 /// Write the specified value using the writer.
 /// </summary>
 /// <param name="value">Value.</param>
 /// <param name="writer">Writer.</param>
 public override void Write(object value, ISaveGameWriter writer)
 {
     UnityEngine.ParticleSystem.ExternalForcesModule externalForcesModule = (UnityEngine.ParticleSystem.ExternalForcesModule)value;
     writer.WriteProperty("enabled", externalForcesModule.enabled);
     writer.WriteProperty("multiplier", externalForcesModule.multiplier);
 }