I am trying to make an extension for SmartFoxServer and want to send the data in the raw format rather than xml. I know this is probably a really stupid question, but I can't seem to figure out how to parse the data when I get it back.
public void OnExtensionResponse(object data, string type) {
Debug.Log(data);
}
This outputs the full data string with the % delimiter. However, when I try the following I get an error:
public void OnExtensionResponse(object data, string type) {
Debug.Log(data[0]);
}
error CS0021: Cannot apply indexing with [] to an expression of type `object'