mirror of
https://github.com/FOSS-Supremacy/OpenLiberty.git
synced 2025-04-28 20:07:57 +03:00
17 lines
476 B
GDScript
17 lines
476 B
GDScript
extends Node3D
|
|
|
|
@onready var external_lights = [ $left_light, $right_light ]
|
|
@onready var internal_light = $internal_light
|
|
|
|
func _input(event):
|
|
if Input.is_action_just_pressed("internal_light"):
|
|
internal_light.visible = not internal_light.visible
|
|
|
|
if Input.is_action_just_pressed("external_lights"):
|
|
for light in external_lights:
|
|
light.visible = not light.visible
|
|
|
|
func _ready():
|
|
internal_light.visible = false
|
|
for light in external_lights:
|
|
light.visible = false
|