game: improve enemy-manager
This commit is contained in:
@@ -16,10 +16,12 @@ var dead: bool = false
|
||||
var death_anim_done: bool = false
|
||||
var god_mode: bool = false
|
||||
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("active"):
|
||||
weapon.do_active()
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
camera.position = global_position
|
||||
main_ui.player_ui.update_hp()
|
||||
@@ -27,7 +29,6 @@ func _ready() -> void:
|
||||
if not weapon:
|
||||
weapon = WEAPON_SWORD.instantiate()
|
||||
add_child(weapon)
|
||||
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
|
Reference in New Issue
Block a user