using UnityEngine.SceneManagement;
SceneManager.LoadScene("YourSceneName");
SceneManager.LoadScene("name of scene", LoadSceneMode.Single);
void Die()
{
Destroy(gameObject);
if (gameManager != null)
{
if (gameManager.GetEnemies - 1 == 0)
{
gameManager.Invoke("WinLevel", 1f);
}
}
}