My solution. Can someone explain why Ben did it the way he did?

Is there an advantage of writing the code in the way Ben did it over the way I did?
Why did he wrote the code in “Awake” and not in the LoadFirstScene Method?

image

Hi,

What happens if a new scene gets loaded in less than 5 seconds after this object was created?

Hi Nina,

I’m sorry what do you mean?
It works just fine like Ben’s version.

Maybe I misunderstood your question. I understood that you were wondering why Ben wrote the code (which code?) in the Awake method instead of the LoarFirstScene method.

Invoke works only with another method. I’m surprised that your code works exactly the same.

This topic was automatically closed after 16 hours. New replies are no longer allowed.

Privacy & Terms