Changing Scenes in Unity and keeping connection

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

matrix211v1
Posts: 61
Joined: 16 Jan 2009, 14:48

Changing Scenes in Unity and keeping connection

Postby matrix211v1 » 12 May 2009, 16:42

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.

Thanks

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 2 guests