|
|
@ -143,6 +143,7 @@ public class Networking : ScriptableObject {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case "login-result":
|
|
|
|
case "login-result":
|
|
|
|
|
|
|
|
Debug.LogFormat("received message: {0}", msg);
|
|
|
|
LoginResult login = JsonUtility.FromJson<LoginResult>(parts[1]);
|
|
|
|
LoginResult login = JsonUtility.FromJson<LoginResult>(parts[1]);
|
|
|
|
onLoginResult(login);
|
|
|
|
onLoginResult(login);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -247,5 +248,6 @@ public class Networking : ScriptableObject {
|
|
|
|
private struct LoginResult {
|
|
|
|
private struct LoginResult {
|
|
|
|
public bool passed;
|
|
|
|
public bool passed;
|
|
|
|
public string error;
|
|
|
|
public string error;
|
|
|
|
|
|
|
|
public bool dead;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|