PirateTreasureHunt/DigSite.gd

16 lines
367 B
GDScript
Raw Normal View History

2021-06-12 23:42:38 +02:00
extends Node2D
var HasTreasure = false
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
get_node("treasuredigsite").visible = HasTreasure
get_node("digsite").visible = not HasTreasure
update()