This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
Jessist/addons/godot-action/GDAction/Visibility/GDActionVisibility.gd

18 lines
421 B
GDScript3
Raw Permalink Normal View History

2022-06-18 13:05:48 +02:00
class_name GDActionVisibility extends GDActionInstant
var is_hide: bool
func _init(is_hide: bool, gd_utils: Node).(gd_utils):
self.is_hide = is_hide
func _create_action_node(key: String, node):
return GDActionNodeVisibility.new(self, key, node)
func _run_action(action_node: GDActionNode, delay: float, speed: float):
._run_action(action_node, delay, speed)
action_node.set_visibility(is_hide, delay, speed)