go to next level unity code example
Example: c# next level script
using UnityEngine.SceneManagement;
public void PlayGame()
{
SceneManager.LoadScene("YourLevelName");
}
using UnityEngine.SceneManagement;
public void PlayGame()
{
SceneManager.LoadScene("YourLevelName");
}