Beispiel #1
0
        public void Remove()
        {
#if CLIENT
            lightSource?.Remove();
            lightSource = null;
#endif
            foreach (Decal d in burnDecals)
            {
                d.StopFadeIn();
            }
            hull?.RemoveFire(this);
            removed = true;
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }