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