[SOLVED] Level Manager's Start method not called on second scene?

Hello there, I’m a little confused about something.
Ben adds a Start method to the Level Manager that automatically loads the next scene. But the next scene also has a Level Manager object, so why is its Start method not called and why doesn’t it try loading the next scene automatically? That’s what happens to me, giving me an error (because there is no third scene).
What am I missing?
Thanks in advance for any help :slight_smile:

Hello @Sebastian_Martens,

At around 5:34, Ben grabs “Start Menu.unity” (a Unity3D scene file) from Block Breaker. This file includes a “Level Manager” GameObject.

HOWEVER, considering that Ben creates both a Scripts folder and the script iteself, there may not even be a “LevelManager.cs” script.

Then, at around 12:10, Ben guts the old, unneeded code and adds the Start() Method.

The crucially important thing here is that the 2 Level Managers are different:

  • The one that’s in the Splash screen was altered by Ben,
  • The other one in the next scene is a “collateral GameObject” that was in the scene when Ben dragged it in.

You may find that Ben deletes it in the next video.

Hope this Helps :slight_smile:

EDIT:
In Video 134: Menus, Options, and Music (3 Videos later), he addresses this issue. :slight_smile:

ALSO, there doesn’t appear to be any “Persistence” to the LevelManager.cs script (that Ben uses) anyway.

Thanks Dean, that does clear things up a lot :wink: