1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-29 02:44:19 +00:00
swear-jar/entity/coin_copper/coin_copper.gd
Matteo Balugani 7c4af0e6c7 mmm idk
2023-10-02 15:50:25 +02:00

27 lines
509 B
GDScript

#extends RigidBody2D
#
#@export var sound_touch: AudioStreamPlayer
#
#var touched=false
#var was_sleeping: bool = false
#
#func set_touched():
# touched=true
#
#func _on_sleeping_state_changed():
# was_sleeping = true
#
#func _on_body_entered(body):
# if not was_sleeping:
# if touched==false and $Timer.is_stopped():
# #$sound_touch.play()
# $Timer.start()
# var other_node=body
# if other_node.has_method("set_touched"):
# other_node.set_touched()
#
#func _on_body_exited(body):
# touched=false