The problem I have is that I want to see if the level is loaded before I continue.
I don’t want to restart everything when a new section is loaded, but for some reason depending on when things happen the level hasn’t loaded before certain calls are made. For example…
*Call to load level additive
*NPC manager starts putting NPCs on the map and gathering information on objects in the new “level”.
*However, the map hasn’t been loaded yet so the NPC list is not complete and some end up in space or not added at all.
So I need a way to check to see if the level was loaded before the NPC list is created, otherwise the game crashes. I had been using OnLevelWasLoaded() to see if that would happen, but now it won’t fire. So now I’m stuck. How do we check to see if everything was loaded before continuing? It says that Unity Pro has Application.isLoaded, but I don’t have Pro, so what can we do to make sure these errors don’t happen?
Also, I’ve read some things and it’s kind of unreleated, but when I tried to use AsyncOperation.isDone, I kept getting an error CS0120. Of course I later found out that I don’t have Pro, so I can’t use it anyway, but the documentation says it should be there, but it isn’t.
Either way, I just want to solve this problem with my loading of objects and it’s getting frustrating.