mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2025-01-02 14:39:37 +01:00
9 lines
178 B
GDScript
9 lines
178 B
GDScript
extends Area
|
|
|
|
var taken = false
|
|
|
|
func _on_coin_body_enter(body):
|
|
if not taken and body is preload("res://player/player.gd"):
|
|
get_node("Animation").play("take")
|
|
taken = true
|