how to get match 3 game to change levels when a score is reached,how to make match 3 game change levels

how to get match 3 game to change levels when a score is reached,how to make match 3 game change levels

using UnityEngine;
using UnityEngine.SceneManagement;

public class ExampleClass : MonoBehaviour {

    public int Score;

    void Awake() {

        Score = 0;

    }

    void Update() {

        // increase the Score
        Score += 1;

        // when Score reaches 10, load next scene
        if (Score == 10) {
            LoadNextScene();
        }

    }


    void LoadNextScene() {
        // Load next scene by its Build Index
        SceneManager.LoadScene(1, 
        LoadSceneMode.Single);

    }

}