public void RegisterToServer(string username, string password, string passwordRepeat) { if (password == passwordRepeat) { client.Write(new Registration(username, password)); ClientData data = client.data; data.username = username; client.data = data; } else { popUpManager.ShowPopUp("passwords don't match"); } Debug.Log("Attempting register with username: "******" and password: " + password); }
public void OnGameEnd(uint winnerId, string reason) { popUpManager.ShowPopUp(reason); lobby.gameObject.SetActive(true); gameObject.SetActive(false); GameMove.onGameMove -= RegisterMove; }