Page 1 of 1

Changing Scenes in Unity and keeping connection

Posted: 12 May 2009, 16:42
by matrix211v1
Hello All!

Using the Island Demo Network code, how would I go from the Island Demo scene to another scene, then back to Island Demo. What I need to retain is the last location that I was in on the Island Demo.

I have stored the position of where I was on the Island Demo, put those in using SetUserVariables (or whatever it was). But when I come back, 1 of 2 things happen:

1) User is already in room and it spawns a new character (fixed with checking to see if user is already in room before calling JoinRoom)
2) User comes back and there is a "remote_xx" of the user (so there is 2 version of them) plus their local version of themselves.

Using the same code base as the Island Demo, what things should I check to make this work correctly.