Beispiel #1
0
 /// <summary>
 /// Creates a deep copy of this <see cref="ParticleEmitter"/> instance.
 /// </summary>
 /// <returns>A deep copy of this <see cref="ParticleEmitter"/>.</returns>
 public override ParticleEmitter DeepCopy(IParticleEffect newOwner)
 {
     var ret = new ConeEmitter(newOwner);
     CopyValuesTo(ret);
     ret.ConeAngle = ConeAngle;
     ret.Direction = Direction;
     return ret;
 }
Beispiel #2
0
        /// <summary>
        /// Creates a deep copy of this <see cref="ParticleEmitter"/> instance.
        /// </summary>
        /// <returns>A deep copy of this <see cref="ParticleEmitter"/>.</returns>
        public override ParticleEmitter DeepCopy(IParticleEffect newOwner)
        {
            var ret = new ConeEmitter(newOwner);

            CopyValuesTo(ret);
            ret.ConeAngle = ConeAngle;
            ret.Direction = Direction;
            return(ret);
        }