Update 3D Platformer for 4.0 (#770)

This commit is contained in:
Jonathan Nicholl
2022-12-13 10:51:20 -05:00
committed by GitHub
parent 095beddcb9
commit 35f9517ea8
117 changed files with 2520 additions and 4289 deletions

View File

@@ -1,8 +1,10 @@
extends Area3D
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")
if not taken and body is Player:
$Animation.play(&"take")
taken = true