I want to connect in a login scene and then keep using that same connection in a game scene. This is done in the example by connecting using LoginController.cs and then handing off sfs to LobbyController.cs by doing:
Code: Select all
private SmartFox sfs;
void Awake() {
if (SmartFoxConnection.IsInitialized) {
sfs = SmartFoxConnection.Connection;
} else {
// stuff
}
// more stuff
}
The issue I'm having is that SmartFoxConnection is no longer a thing it seems like in the most recent DLL? I'd like to avoid using more than one DLL or an outdated one. I looked through the API but couldn't find what I was looking for. Can anyone help? Thanks in advance.