Files
escape/comboslot.gd
T
2023-01-29 22:35:02 +01:00

10 lines
256 B
GDScript

extends StaticBody3D
var number = 0
func _on_input_event(camera, event, position, normal, shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"):
$"..".rotate_x(PI/5)
$Audio.playing = true
number = (number + 1) % 10