/// <summary> /// Initializes a new instance of the <see cref="ParticleEffect"/> class. /// </summary> public ParticleEffect() { Life = -1; var name = ParticleEffectManager.Instance.GenerateUniqueEffectName(DefaultEffectName); _effectConfig = new ParticleEffectConfig(name); ParticleEffectManager.Instance.AddEffect(this); }
/// <summary> /// Initializes a new instance of the <see cref="ParticleEffect"/> class. /// </summary> public ParticleEffect() { Life = -1; var name = ParticleEffectManager.Instance.GenerateUniqueEffectName(DefaultEffectName); _effectConfig = new ParticleEffectConfig(name); ParticleEffectManager.Instance.AddEffect(this); }
/// <summary> /// Initializes a new instance of the <see cref="ParticleEffect"/> class. /// </summary> /// <param name="effectConfig">The <see cref="ParticleEffectConfig"/> to use.</param> ParticleEffect(ParticleEffectConfig effectConfig) { Life = -1; _effectConfig = effectConfig; }
/// <summary> /// Initializes a new instance of the <see cref="ParticleEffect"/> class. /// </summary> /// <param name="effectConfig">The <see cref="ParticleEffectConfig"/> to use.</param> ParticleEffect(ParticleEffectConfig effectConfig) { Life = -1; _effectConfig = effectConfig; }