Got it to work without attaching SceneLoader.cs to the "Level" game object

So in course number 66 (Win the Level & Load) I manage to be able to “Win the game” and Load next scene without attaching the Scene Loader to the Level Game Object. I do have Level.cs attached to the Game object though!

Is this because we are referencing the “SceneLoader” class (// Cached reference) in Level.cs?

Hi Oritfred,

Without knowing anything about your project, it’s impossible for me to answer your question.

As long as there is an object reference attached to the variable you want to access, you won’t get a NullReferenceException.

This topic was automatically closed after 14 days. New replies are no longer allowed.

Privacy & Terms