add attack cooldown and hit window
This commit is contained in:
@@ -3,6 +3,8 @@ extends RefCounted
|
||||
|
||||
const MARGIN = 0.01
|
||||
|
||||
var is_visible: bool = true
|
||||
|
||||
var _mesh_nodes: Array[MeshInstance3D] = []
|
||||
|
||||
|
||||
@@ -56,6 +58,12 @@ func init(children: Array[Node], parent: Node, material: Material) -> void:
|
||||
Debugger.mode_changed.connect(_on_debugger_mode_changed)
|
||||
|
||||
|
||||
func set_visibility(visible: bool) -> void:
|
||||
is_visible = visible
|
||||
for node in _mesh_nodes:
|
||||
node.visible = is_visible
|
||||
|
||||
|
||||
func _on_debugger_mode_changed(mode: Debugger.Mode) -> void:
|
||||
for mesh_node in _mesh_nodes:
|
||||
mesh_node.visible = mode == Debugger.Mode.FULL
|
||||
|
||||
Reference in New Issue
Block a user