Beispiel #1
0
        public void Destroy(Entity ent)
        {
            SpotLight sl = null;

            if (ent is CharacterEntity)
            {
                sl = ((CharacterEntity)ent).Flashlight;
                ((CharacterEntity)ent).Flashlight = null;
            }
            if (sl != null)
            {
                sl.Destroy();
                TheClient.MainWorldView.Lights.Remove(sl);
            }
        }