PhotonNetwork.LoadLevel C# (CSharp) Method

LoadLevel() public static method

Loads the level and automatically pauses the network queue. Call this in OnJoinedRoom to make sure no cached RPCs are fired in the wrong scene.
public static LoadLevel ( int levelNumber ) : void
levelNumber int /// Number of the level to load (make sure it's in the build preferences). ///
return void
    public static void LoadLevel(int levelNumber)
    {
        PhotonNetwork.isMessageQueueRunning = false;
        networkingPeer.loadingLevelAndPausedNetwork = true;
        Application.LoadLevel(levelNumber);
    }

Same methods

PhotonNetwork::LoadLevel ( string levelTitle ) : void

Usage Example

Ejemplo n.º 1
0
 private void OnJoinedRoom()
 {
     PhotonNetwork.LoadLevel("Sc");
 }
All Usage Examples Of PhotonNetwork::LoadLevel