TMC - 10 Digital Tech Semester 2
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto mode

Scenes

Scenes are selected by number (on the right hand side of the scene list in the build settings).

The two highlighted lines are the key ingredients here.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class Player : MonoBehaviour
{
    public void LoadScene(int level)
    {
        SceneManager.LoadScene(level);
    }
}