I am basically using the code from the SFS Island Demo. In the "networkcontroller" in the function :
void Start() {
DontDestroyOnLoad(this);
Application.runInBackground = true; // Let the application be running whyle the window is not active.
smartFoxClient = GetClient();
if (smartFoxClient==null) {
Application.LoadLevel("LoginScreen");
return;
}
SubscribeEvents();
started = true;
smartFoxClient.JoinRoom("JamesIsland");
}
I am going to a "different" scene in the game, then I need to return to the main world. Obviously the Start is fired again so I put a DontDestroyOnLoad(this); so I don't lose my info.
The issue is, now it is trying to call the smartFoxClient.JoinRoom("JamesIsland"); with the same already logged in user, which causes an error. Is there any way to "check" to see if I am already logged into the room?
Thanks!
- Board index SmartFoxServer Pro/Basic 1.x Client API - SFS 1.x .Net / Unity3D API
- Search
-
- It is currently 10 Feb 2026, 16:37
- All times are UTC
Check to see if already in Room?
Post here all your questions related with SmartFoxServer .Net/Unity3D API
-
matrix211v1
- Posts: 61
- Joined: 16 Jan 2009, 14:48
Return to “.Net / Unity3D API”
Jump to
- SmartFoxServer 2X
- ↳ SFS2X Questions
- ↳ SFS2X Client API
- ↳ SFS2X ActionScript 3 API
- ↳ SFS2X C# API
- ↳ SFS2X iPhone / iPad / OSX API
- ↳ SFS2X Java / Android API
- ↳ SFS2X HTML5 / JavaScript API
- ↳ SFS2X C++ API
- ↳ RedBox 2X
- ↳ 2X Features Wish List
- SmartFoxServer Pro/Basic 1.x
- ↳ SmartFoxServer 1.x Discussions and Help
- ↳ Server Side Extension Development
- ↳ BlueBox
- ↳ RedBox
- ↳ Features Wish List
- ↳ The Bug Trap
- ↳ Client API - SFS 1.x
- ↳ .Net / Unity3D API
- ↳ iPhone Objective-C API
- ↳ Silverlight API
- ↳ Java2SE / Android Client API
- ↳ Other Client API
- OpenSpace Support
- ↳ OpenSpace v2 discussions and help
- ↳ OpenSpace v1 discussions and help
- SmartFoxBits Support
- ↳ SmartFoxBits for SFS 2X
- ↳ SmartFoxBits for SFS 1.x
- Community
- ↳ Job offers and requests
- ↳ The Gallery