Exemple #1
0
        public void Connection()
        {
            string player_name = GameUser.CurrentUser.ID;

            // Debug.Log ("player_name " + player_name);
            WarpClient.initialize(appKey, ipAddress, port);
            WarpClient.setRecoveryAllowance(120);
            listen = GetComponent <Roulette_ListnerClass> ();
            WarpClient.GetInstance().AddConnectionRequestListener(listen);
            WarpClient.GetInstance().AddChatRequestListener(listen);
            WarpClient.GetInstance().AddLobbyRequestListener(listen);
            WarpClient.GetInstance().AddNotificationListener(listen);
            WarpClient.GetInstance().AddRoomRequestListener(listen);
            WarpClient.GetInstance().AddUpdateRequestListener(listen);
            WarpClient.GetInstance().AddZoneRequestListener(listen);
            WarpClient.GetInstance().Connect(player_name, "");
        }
Exemple #2
0
        public void Connection()
        {
            string player_name = PlayerPrefs.GetString(PlayerDetails.ConnectionId);

            Debug.Log("player_name " + player_name);
            //player_name = "Ram";
            WarpClient.initialize(appKey, ipAddress, port);
            WarpClient.setRecoveryAllowance(100);
            listen = new Roulette_ListnerClass();
            WarpClient.GetInstance().AddConnectionRequestListener(listen);
            WarpClient.GetInstance().AddChatRequestListener(listen);
            WarpClient.GetInstance().AddLobbyRequestListener(listen);
            WarpClient.GetInstance().AddNotificationListener(listen);
            WarpClient.GetInstance().AddRoomRequestListener(listen);
            WarpClient.GetInstance().AddUpdateRequestListener(listen);
            WarpClient.GetInstance().AddZoneRequestListener(listen);
            WarpClient.GetInstance().Connect(player_name, "");
        }