You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Undertaker-Simulator/scenes/telephone_station.gd

13 lines
297 B

extends MeshInstance3D
@onready var animation_player: AnimationPlayer = $AnimationPlayer
var isPickedUp:bool = false
func _on_interactable_on_hit() -> void:
isPickedUp = !isPickedUp
print("hit")
if isPickedUp:
animation_player.play("phone_pickzup")
else:
animation_player.play("Hangup")