Some code style fixes. Fixed enemy spawning
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
class_name HealthBarPart
|
||||
extends Control
|
||||
|
||||
|
||||
const TICK_COUNT = 5
|
||||
|
||||
|
||||
@export var texture_value : Texture2D
|
||||
@export var texture_shade : Texture2D
|
||||
|
||||
|
||||
var _tick_size : int = 0
|
||||
var _target_value: float = 0
|
||||
|
||||
|
||||
@onready var value_bar : TextureProgressBar = $ValueBar
|
||||
@onready var shade_bar : TextureProgressBar = $ShadeBar
|
||||
|
||||
@@ -12,13 +20,6 @@ extends Control
|
||||
@onready var shade_tick_timer : Timer = $ShadeTickTimer
|
||||
|
||||
|
||||
const TICK_COUNT = 5
|
||||
|
||||
|
||||
var _tick_size : int = 0
|
||||
var _target_value: float = 0
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
value_bar.texture_progress = texture_value
|
||||
shade_bar.texture_progress = texture_shade
|
||||
|
||||
Reference in New Issue
Block a user