Initial commit
This commit is contained in:
commit
3b96451047
71 changed files with 2302 additions and 0 deletions
12
addons/walkabout/events/sequence_event.gd
Normal file
12
addons/walkabout/events/sequence_event.gd
Normal file
|
@ -0,0 +1,12 @@
|
|||
@icon("sequence_event.svg")
|
||||
class_name WBSequenceEvent
|
||||
extends WBEvent
|
||||
## Event that performs each child event in sequence, one after another.
|
||||
|
||||
|
||||
func _perform() -> void:
|
||||
event_started.emit()
|
||||
for child in get_children():
|
||||
if child is WBEvent:
|
||||
await child.perform()
|
||||
event_finished.emit()
|
Loading…
Add table
Add a link
Reference in a new issue