Photon fails to compile when imported into existing project
Options
This is all I get, cant find anything on it. Works fine with a new project.
Assets/Photon Unity Networking/Editor/PhotonNetwork/AccountService.cs(120,22): error CS0122: `AccountService.registrationCallback' is inaccessible due to its protection level
Assets/Photon Unity Networking/Editor/PhotonNetwork/AccountService.cs(120,22): error CS0122: `AccountService.registrationCallback' is inaccessible due to its protection level
0
Comments
-
I had to delete the accountservice.cs file and then comment out this method. No idea whats going on here.
protected virtual void RegisterWithEmail(string email)
{
return;
/*
EditorUtility.DisplayProgressBar(CurrentLang.ConnectionTitle, CurrentLang.ConnectionInfo, 0.5f);
string accountServiceType = string.Empty;
if (PhotonEditorUtils.HasVoice)
{
accountServiceType = "voice";
}
AccountService client = new AccountService();
client.RegisterByEmail(email, RegisterOrigin, accountServiceType); // this is the synchronous variant using the static RegisterOrigin. "result" is in the client
EditorUtility.ClearProgressBar();
if (client.ReturnCode == 0)
{
this.mailOrAppId = client.AppId;
PhotonNetwork.PhotonServerSettings.UseCloud(this.mailOrAppId, 0);
if (PhotonEditorUtils.HasVoice)
{
PhotonNetwork.PhotonServerSettings.VoiceAppID = client.AppId2;
}
PhotonEditor.SaveSettings();
this.photonSetupState = PhotonSetupStates.GoEditPhotonServerSettings;
}
else
{
PhotonNetwork.PhotonServerSettings.HostType = ServerSettings.HostingOption.PhotonCloud;
PhotonEditor.SaveSettings();
Debug.LogWarning(client.Message + " ReturnCode: " + client.ReturnCode);
if (client.Message.Contains("registered"))
{
this.photonSetupState = PhotonSetupStates.EmailAlreadyRegistered;
}
else
{
EditorUtility.DisplayDialog(CurrentLang.ErrorTextTitle, client.Message, CurrentLang.OkButton);
this.photonSetupState = PhotonSetupStates.RegisterForPhotonCloud;
}
}
*/
}0 -
0
-
0