public void Remove() { #if CLIENT lightSource?.Remove(); lightSource = null; #endif foreach (Decal d in burnDecals) { d.StopFadeIn(); } hull?.RemoveFire(this); removed = true; }
public void Remove() { lightSource.Remove(); if (basicSoundIndex > 0) { Sounds.SoundManager.Stop(basicSoundIndex); basicSoundIndex = -1; } if (largeSoundIndex > 0) { Sounds.SoundManager.Stop(largeSoundIndex); largeSoundIndex = -1; } hull.RemoveFire(this); }
public void Remove() { #if CLIENT lightSource.Remove(); if (basicSoundIndex > 0) { Sounds.SoundManager.Stop(basicSoundIndex); basicSoundIndex = -1; } if (largeSoundIndex > 0) { Sounds.SoundManager.Stop(largeSoundIndex); largeSoundIndex = -1; } foreach (Decal d in burnDecals) { d.StopFadeIn(); } #endif hull.RemoveFire(this); }