Made extra events more generic.

This commit is contained in:
2025-05-06 11:41:55 -05:00
parent a3c2c65735
commit b0d9106772
5 changed files with 62 additions and 60 deletions

View File

@@ -57,17 +57,19 @@ func isDone() -> bool:
return false
func end() -> void:
super.end()
for child in childEvents:
if child.ended || !child.started:
continue
child.end()
# Send to the parent to end the extra events
super.end()
func reset() -> void:
super.reset()
childIndex = -1
for child in childEvents:
child.reset()
# Send to the parent to reset the extra events
super.reset()
func startChild(child:Event) -> void:
# Inherits some properties from this event.