Search Unity

Question Assets\Loading.cs(13,26): error CS0115: 'Loading.OnConnectedToMaster()': no method found to overrid

Discussion in 'Multiplayer' started by sxcr3am, Apr 3, 2022.

?

how to fix

  1. u know

    0 vote(s)
    0.0%
  2. or dont

    1 vote(s)
    100.0%
  3. nope

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. sxcr3am

    sxcr3am

    Joined:
    Mar 29, 2022
    Posts:
    2
    Code (CSharp):
    1. using UnityEngine;
    2. using Photon.Pun;
    3. using UnityEngine.SceneManagement;
    4.  
    5. public class Loading : MonoBehaviour
    6. {
    7.    
    8.     void Start()
    9.     {
    10.         PhotonNetwork.ConnectUsingSettings();
    11.     }
    12.  
    13.     public override void OnConnectedToMaster()
    14.     {
    15.         Debug.Log("Connected");
    16.         SceneManager.LoadScene("Lobby");
    17.     }
    18. }
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,066