I'v noticed when I'm running functions like Cmd and Rpc they won't execute on the same frame they called in.
example:
If this is the case, is there a way to deal with it with a coroutine?
something like:
For now i'm...
Deal with Cmd and Rpc functions delay.
example:
Code (CSharp):
- int x = 1;
- void foo()
- {
- Rpc_ChangeValue();
- }
- [ClientRpc]
- Rpc_ChangeValue()
- {
- x=2;
- }
something like:
Code (CSharp):
- IEnumerator foonumerator()
- {
- yield Rpc_ChangeValue(); //If it would work it would be great.
- }
Deal with Cmd and Rpc functions delay.