Removed popup from the game, added simple options and menu. Added spawn to tiles and reworked content spawning
This commit is contained in:
@@ -7,9 +7,15 @@ public class LightHandler
|
||||
|
||||
public static void RedrawLights(Color color)
|
||||
{
|
||||
List<OmniLight3D> availableLights = new();
|
||||
foreach(OmniLight3D light in lights)
|
||||
{
|
||||
light.LightColor = color;
|
||||
if (GodotObject.IsInstanceValid(light))
|
||||
{
|
||||
light.LightColor = color;
|
||||
availableLights.Add(light);
|
||||
}
|
||||
}
|
||||
lights = [..availableLights];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user