You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
for a turn-based game, I need to do some actions sequentially.
for example, moving an object to a position, then playing animation, and then doing a change in UI. I think using RX is a good solution for this but I don't know how to use it?
on documentation, unirx suggests using coroutines with rx. is it the best choice?
The text was updated successfully, but these errors were encountered:
I don't know what's the best solution for your problem, but I have some ideas that maybe can help you out.
You can fire an event with MessageBroker after every of the before mentioned actions are completed, and register listeners that are interested in knowing when those actions are completed.
Also, if you are performing those actions with UniRx, then you can use OnCompleted event to do the next action in the sequence
Hope this will help you out 🙂
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
hi.
for a turn-based game, I need to do some actions sequentially.
for example, moving an object to a position, then playing animation, and then doing a change in UI. I think using RX is a good solution for this but I don't know how to use it?
on documentation, unirx suggests using coroutines with rx. is it the best choice?
The text was updated successfully, but these errors were encountered: