11 lines
238 B
GDScript
11 lines
238 B
GDScript
extends StaticBody2D
|
|
|
|
var PlayerStats = ResourceLoader.PlayerStats
|
|
|
|
onready var animation = $Animation
|
|
|
|
func _on_SaveArea_body_entered(_body):
|
|
print(_body)
|
|
# PlayerStats.set_max_health()
|
|
animation.play("Save")
|
|
SaverLoader.save_game()
|