Unexpected behavior using States
and Event
s
#18428
Labels
A-ECS
Entities, components, systems, and events
A-States
App-level states machines
C-Bug
An unexpected or incorrect behavior
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Bevy version
0.15.3
What you did
What went wrong
The output of this code is:
As the system
end_phase2
only runs in thePhase2
state, it should be triggered by the delayed event 2, but it's like it is triggered still by the first event.This is confirmed by commenting out the
if
statement insend_event2
, which results in:So
end_phase2
is actually triggered twice despite the first event is triggered in another state with respect to the one during whichend_phase2
should be running.Additional information
Am I missing something or is it a bug?
Thanks!
The text was updated successfully, but these errors were encountered: