UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"load scene trigger on game finish"
public class GameFinished : MonoBehaviour { public Button nextLevel; public string levelName; void OnTriggerEnter(Collider other) { if(other.gameObject.name == "Player") { nextLevel.gameObject.SetActive (true); SceneManager.LoadScene ("Scene1"); } } }