public override void OnConnectedToMaster()
 {
     if (OnConnectToMaster != null)
     {
         OnConnectToMaster.Invoke();
     }
 }
Exemple #2
0
 private void Start()
 {
     PhotonNetwork.ConnectUsingSettings();
     if (PhotonNetwork.IsConnected)
     {
         OnConnectToMaster?.Invoke();
     }
 }
Exemple #3
0
 public override void OnConnectedToMaster()
 {
     PhotonNetwork.AutomaticallySyncScene = true;
     OnConnectToMaster?.Invoke();
 }