adegan pemuatan persatuan
using UnityEngine.SceneManagement;
int buildIndex = 0;
//Load the scene with a build index
SceneManager.LoadScene(buildIndex);
Elegant Echidna
using UnityEngine.SceneManagement;
int buildIndex = 0;
//Load the scene with a build index
SceneManager.LoadScene(buildIndex);
SceneManager.LoadScene("name of scene", LoadSceneMode.Single);
using UnityEngine.SceneManagement
public class LoadScene : MonoBehavior
{
public string sceneToLoad = "Level2";
public void Start()
{
SceneManager.LoadScene(sceneToLoad);
}
}
void Die()
{
Destroy(gameObject);
if (gameManager != null)
{
if (gameManager.GetEnemies - 1 == 0)
{
gameManager.Invoke("WinLevel", 1f);
}
}
}