initial shit

This commit is contained in:
2026-06-04 16:53:41 -05:00
parent f019615187
commit d3779cff20
828 changed files with 512567 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
extends Node3D
signal incremented
signal decremented
signal switchUpdated
@export var State = 0
@export var isLoopingUpdate : bool = false
func _interact_press(is_alt_click: bool = false) -> void:
if is_alt_click:
if State != 0:
State -= 1
$Sound.play()
emit_signal("decremented")
emit_signal("switchUpdated")
else:
if State != 2:
State += 1
$Sound.play()
emit_signal("incremented")
emit_signal("switchUpdated")
func _process(delta: float) -> void:
if State == 0:
$StaticBody3D.rotation_degrees = Vector3(0, 45, 0)
elif State == 1:
$StaticBody3D.rotation_degrees = Vector3(0, 0, 0)
elif State == 2:
$StaticBody3D.rotation_degrees = Vector3(0, -45, 0)
if isLoopingUpdate:
emit_signal("switchUpdated")