problem with simple connection code .

Options
hi i am new to photon and i started with doc but i have stuck at start point .
What's wrong with my code? it says disconnected and Invalid Authentication . my app id and chosen server works normal in memory game and sand box tutorial .
public class MyClient :MonoBehaviour
{
private LoadBalancingClient client;

// this is called when the client loaded and is ready to start
void Start()
{
client = new LoadBalancingClient();
client.AppId = ""; // edit this!
client.NickName = "666";

// "eu" is the European region's token
bool connectInProcess = client.ConnectToRegionMaster("EU"); // can return false for errors

}

void Update()
{
client.Service();


}
void OnGUI(){

GUILayout.Label("name: " + client.NickName + " state: " + client.State.ToString());
Debug.Log (client.DisconnectedCause);
}


void OnApplicationQuit()
{
client.Disconnect();
}

}

Comments

  • Miti
    Options
    no answer needed any more problem solved . there was a mistake with my app id copy and paste. sorry.