Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

SwitchToProtocol: Udp PhotonNetwork.connected: False

$
0
0
hey guys connected with setup wizard, have network connections enabled, but getting
SwitchToProtocol: Udp PhotonNetwork.connected: False


have I missed something?

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class NetworkServerControll : Photon.MonoBehaviour {

public string roomName = "GameRoom";
public int PlayerCount = 0;

public GameObject SearchingForgame;

public void PlayGame(){
SearchingForgame.SetActive (true);
PhotonNetwork.ConnectUsingSettings("v4.2");
}


void OnJoinedLobby() {
RoomOptions roomOptions = new RoomOptions() { isVisible = true, maxPlayers = 5 };
PhotonNetwork.JoinOrCreateRoom(roomName, roomOptions, TypedLobby.Default);
}



Viewing all articles
Browse latest Browse all 15755

Latest Images

Trending Articles



Latest Images