How to preserve smartfox client when switching scenes?
Posted: 22 Oct 2010, 18:02
Hi everybody.
I'm making a little application in unity 3 + sfs pro trial, because I think sfs is very powerful and let indie developers make great things in less time.
I have done a loggin scene when the user logs in SFS with an username and password. Once the login has been successfull and the player is in the room that I wanted, then I need to load a new scene (actually, the SFS room where my player is) and continuing scripting and using smartfox from there, without losing the connection with the server.
But I just don't know how to do that. I have tried to simply load a new scene and create a new smartfox client, but nothing happens, and smartfox.IsConnected() is equal to false.
Thank you so much!
I'm making a little application in unity 3 + sfs pro trial, because I think sfs is very powerful and let indie developers make great things in less time.
I have done a loggin scene when the user logs in SFS with an username and password. Once the login has been successfull and the player is in the room that I wanted, then I need to load a new scene (actually, the SFS room where my player is) and continuing scripting and using smartfox from there, without losing the connection with the server.
But I just don't know how to do that. I have tried to simply load a new scene and create a new smartfox client, but nothing happens, and smartfox.IsConnected() is equal to false.
Thank you so much!