Currently I have taken the SFSIslandDemo LoginGUI (C#) and modified it to add the following line:
SFSEvent.onExtensionResponse += OnExtensionResponse;
Where OnExtensionResponse is as follows:
public void OnExtensionResponse(object data, string type) {
string dataString=(string)data;
Debug.Log("OnExtensionResponse="+dataString[0]);
}
The server is sending back a room list using the XT but for some reason I never receive the DebugLog message in my OnExtensionResponse routine.
My whole project is in Javascript so I don't mind converting over from C# if that would be easier. I have seen plenty of examples but they are very incomplete and don't show how to go from the OnConnection to this step of receiving the Roomlist and then joining a room.
Need help with using ExtensionResponse
-
- Posts: 6
- Joined: 12 Sep 2010, 23:27
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Return to “.Net / Unity3D API”
Who is online
Users browsing this forum: No registered users and 28 guests