Made extra events more generic.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user