mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
9 lines
166 B
GDScript3
9 lines
166 B
GDScript3
|
class_name Coin
|
||
|
extends Area2D
|
||
|
|
||
|
var taken = false
|
||
|
|
||
|
func _on_body_enter(body):
|
||
|
if not taken and body is Player:
|
||
|
($AnimationPlayer as AnimationPlayer).play("taken")
|