I was wondering if there is a script I can use that can be usable across many scenes without having to go and change the integer of the scene every time I want to progress in levels.
void OnTriggerEnter(Collider other) {
if(other.gameObject.tag==“LevelTrigger”)
{
int y = SceneManager.GetActiveScene().buildIndex;
SceneManager.LoadScene(y+1);
}
}
Add tag “LevelTrigger” to the Trigger. Above script will load the next level in build settings.