blob: ed10f74552d0358203f355c9a8b06044497d7662 (
plain) (
tree)
|
|
extends Node2D
var was_visited = false
@onready var sprite : Sprite2D = $Sprite2D
func set_was_visited(visited: bool):
was_visited = visited
# TODO change the sprite to indicate the change
func _on_area_2d_body_entered(body):
set_was_visited(true)
|