- The "system" send
RaisePower
toFighters
, this "trigger" they to raise yourKi
untilScouter
stop the event loop.[1] - The result of [1] is a
Ki
ofFighter
, thisKi
is send toScouter
. - The
Scouter
just verify if :Ki
> 9000, if true,Scouter
just stop the event loopSystem::current().stop();
I'm trying 2 way...
- 1° just execute action (
RaisePower
) to one fighter and blocked the event loop - 2° just execute action (
RaisePower
) to all, but once.
snippets: https://gist.github.com/marioidival/395c721acc70320e275004093618906c