//ConnectionRequestListener
    #region ConnectionRequestListener
    public void onConnectDone(ConnectEvent eventObj)
    {
        if (!ReferenceEquals(null, progressDialog))          //if(progressDialog!=null)
        {
            progressDialog.dismiss();
            progressDialog = null;
        }

        Debug.Log("GAMECONTROLLER onConnectDone : " + eventObj.getResult());
        if (eventObj.getResult() == WarpResponseResultCode.SUCCESS)
        {
            Debug.Log("SUCCESS");
            // SUCCESS
        }
        else if (eventObj.getResult() == WarpResponseResultCode.BAD_REQUEST)
        {
            theClient.Disconnect();
        }
        else
        {
            Utils.showToastAlert(Constants.ALERT_CONN_FAIL + " " + eventObj.getResult());
        }
    }
Beispiel #2
0
 public void DisconnectedFromServer()
 {
     Debug.Log("[WarpNetworkManager] Disconnection from server: PLAYERNAME: " + m_strPlayerName);
     m_warpClient.Disconnect();
 }