using Godot; using System.Collections.Generic; public class LightHandler { public static List lights = new List(); public static void RedrawLights(Color color) { List availableLights = new List(); foreach (OmniLight3D light in lights) { if (GodotObject.IsInstanceValid(light)) { light.LightColor = color; availableLights.Add(light); } } lights = availableLights; } }