public override void ReadFrom(object obj) { base.ReadFrom(obj); if (obj == null) { return; } UnityEngine.ParticleSystem.RotationBySpeedModule o = (UnityEngine.ParticleSystem.RotationBySpeedModule)obj; enabled = o.enabled; x = Read(x, o.x); xMultiplier = o.xMultiplier; y = Read(y, o.y); yMultiplier = o.yMultiplier; z = Read(z, o.z); zMultiplier = o.zMultiplier; separateAxes = o.separateAxes; range = o.range; }
public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects) { obj = base.WriteTo(obj, objects); if (obj == null) { return(null); } UnityEngine.ParticleSystem.RotationBySpeedModule o = (UnityEngine.ParticleSystem.RotationBySpeedModule)obj; o.enabled = enabled; o.x = Write(o.x, x, objects); o.xMultiplier = xMultiplier; o.y = Write(o.y, y, objects); o.yMultiplier = yMultiplier; o.z = Write(o.z, z, objects); o.zMultiplier = zMultiplier; o.separateAxes = separateAxes; o.range = range; return(o); }