Check out example codes for "how to switch scenes in unity". It will help you in understanding the concepts better.

Code Example 1


Code Example 2

using UnityEngine.SceneManagement;


Code Example 3

using System.Collections; 
using System.Collections.Generic; 
using UnityEngine; 
using UnityEngine.SceneManagement;

//Load based on name of scene
public class SceneScript {
  public void ChangeScene(string scene = "") {
    SceneManager.LoadScene(sceneName:"scenes Name");

Learn ReactJs, React Native from