extends MeshInstance3D
func _unhandled_input(event):
if event is InputEventKey:
if event.pressed and event.keycode == KEY_6:
rotate_y(0.88)
$AudioStreamPlayer3D.play()
if event.pressed and event.keycode == KEY_W:
rotate_y(0.33)
$AudioStreamPlayer3D.play()
if event.pressed and event.keycode == KEY_A:
rotate_y(0.44)
$AudioStreamPlayer3D.play()
if event.pressed and event.keycode == KEY_D:
rotate_y(0.41)
$AudioStreamPlayer3D.play()
if event.pressed and event.keycode == KEY_S:
rotate_y(0.48)
$AudioStreamPlayer3D.play()
No hay comentarios:
Publicar un comentario