10 lines
256 B
GDScript
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
|