Code (CSharp): using UnityEngine; using Photon.Pun; using UnityEngine.SceneManagement; public class Loading : MonoBehaviour { void Start() { PhotonNetwork.ConnectUsingSettings(); } public override void OnConnectedToMaster() { Debug.Log("Connected"); SceneManager.LoadScene("Lobby"); } } Assets\Loading.cs(13,26): error CS0115: 'Loading.OnConnectedToMaster()': no suitable method found to override
It's been awhile since I've used PUN but I believe you need to inherit from MonoBehaviourPunCallbacks not MonoBehaviour. https://doc-api.photonengine.com/en...1_1_pun_1_1_mono_behaviour_pun_callbacks.html You may also be able to just inherit IConnectionCallbacks, but again it's been awhile for me.
You need to implement IConnectionCallbacks and register for the callbacks. MonoBehaviourPunCallbacks does that for you. If you override OnEnable or OnDisable, make sure to call the base method.