mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2025-01-08 15:09:53 +01:00
9 lines
178 B
GDScript3
9 lines
178 B
GDScript3
|
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
|