My code almost works, but some code doesn't work in NetworkLevelLoad.js (RPC function).
But at runtime, after first
I'm currently struggling with the same task of converting the networking example to C#
The problem is that yield containing functions must return an Enumerator but RPC functions must return void.
The following code works for me.
answered Nov 05 '11 at 01:31 PM
so i'm assuming we're all working off of the same code, and in order to fix the problem you need to make the following changes:
so level additive works and i dont know exactly why, but you need to change your function to a non RPC with return type IEnumerator so that yield will work properly. and in order to call as a RPC, make a dummy function with return type void. and start a coroutine so yield can work its magic.
Meantime, I dont have my debugger with me now but I'll convert it to something like this. Does it look similar to yours?
answered Nov 17 '10 at 10:28 AM