OnConnectedToMaster() not called, but i didn't edit my project
My problem is that I left my project without touching anything for 2 days and when I come back and try to testo the editor or in the previous builds that i made, I cannot connect to photon any more. It seems like the OnConnectedToMaster() and OnConnected() function are not called.
I read in the documentation that to handle this kind of error I should use functions like OnDisconnected(DisconnectCause cause) and OnRegionListReceived(RegionHandler regionHandler).
When i call OnRegionListReceived(RegionHandler regionHandler)
Debug.Log("best region " + regionHandler.BestRegion.ToString());
It shows me "best region jp[ipAdress]: 2147483647ms"
which is ok because I am in Japan but it is impossible to connect.
however, when I set the region to eu inside unity and inside the dashboard photon it works fine.
so how can I make it works for japan like before?