[SOLVED]Why is LevelManager script instantiated?

I can’t see a reason for having a Levelmanager object in the Level01 scene, create a reference for levelmanager script and change the level with the method of that object, instead of simply call to the LoadLevel unity method in the “OnTriggerEnter2D” function. I mean, isn’t more efficient to avoid redundant objects in games?

When you at some later point want to change the behaviour associated with scene loading you would be able to do it all in one place, rather than having to make chamges throughout the entire solution.

Oh, i see. Thanks.

1 Like

You’re welcome :slight_smile:

Privacy & Terms