summaryrefslogtreecommitdiff
path: root/components/healthbar/heart.gd
blob: 617745204a5560921dab011516f69ad9760c5c47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
extends Node2D


onready var fill = $fill
onready var notfill = $notfill

# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.


func _process(delta):
	pass
	
func set_filled(filled: bool):
	if filled:
		fill.visible = true
		notfill.visible = false
	else:
		notfill.visible = true
		fill.visible = false