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/Wait/GDActionWait.gd

20 lines
469 B
GDScript3
Raw Normal View History

2022-06-18 13:05:48 +02:00
class_name GDActionWait extends GDActionInstant
var time: float
var with_range: float
func _init(time: float, with_range: float, gd_utils: Node).(gd_utils):
self.time = time
self.with_range = with_range
func _create_action_node(key: String, node):
return GDActionNodeWait.new(self, key, node)
func _run_action(action_node: GDActionNode, delay: float, speed: float):
._run_action(action_node, delay, speed)
action_node.wait(time, with_range, delay, speed)