Hi Guys,
here is a little addition to this topic. I think it would be better for the designer to manage the level change. I put in a checkbox to improve it a little bit more. What do you think?
public bool changeLevelAutomatically = false;
public float timeTillNextLevel;
// [...]
void Update () {
if(changeLevelAutomatically){
timeTillNextLevel -= Time.deltaTime;
if(timeTillNextLevel < 0){
LoadNextScene ();
}
}
}