Exemplo n.º 1
0
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.InheritVelocityModule uo = (ParticleSystem.InheritVelocityModule)obj;
     enabled         = uo.enabled;
     mode            = uo.mode;
     curve           = uo.curve;
     curveMultiplier = uo.curveMultiplier;
 }
 public static void ParticleInheritVelocity(this ParticleSystem PS,
                                            bool enabled = true,
                                            ParticleSystemInheritVelocityMode Mode = ParticleSystemInheritVelocityMode.Initial)
 {
     ParticleSystem.InheritVelocityModule inheritVelocityModule = PS.inheritVelocity;
     // Velocity Settings
     inheritVelocityModule.enabled = enabled;
     inheritVelocityModule.mode    = ParticleSystemInheritVelocityMode.Initial;
 }