Before you can switch/load scenes, you need to add the scenes to your build in the build settings. The reasoning is that you can have many assets and scenes that you use during development that you do not want included in your final build. The final build only includes the necessary scenes, and the assets used in those scenes. The rest was just there to help you as a developer, but is not part of what the customer/player gets. Your project might be 1GB, but the final build might only be 17MB. That is an extreme example, but I hope it gets the point across.
1. From the Top Menu, select "File --> Build Settings ..."
2. Drag the scenes from the Project Window into the "Scenes in Build" area. Then use the checkboxes to indicate which scenes you want included in your build.
When this GameObject collides with anything, load the scene named "Level2".
Being a little more flexible, here you have two public variables:
Reload the current scene. You can use the method GetActiveScene() to get the current scene you are in. Then use the name attribute to reload the current scene.
One method of retaining data throughout your game is to keep a single persistent GameObject intact from scene to scene. In this way, it can hold any information you want it to hold such as: current score, number of lives remaining, items collected, etc. In the long run, and in larger projects, it is better to write encrypted data to a file. This method of a persistent GameObject is a smaller fix that brings information from one scene to another, but the information will be lost once the game is exited.
The code above does two things:
Check out the YouTube videos below on how to fade, or make your own custom transformation, between scenes. The basic idea is that you record a simple animation of a sprite that covers the camera/entire-scene. It can fade from clear to solid color, or move in from the sides like a curtain, or whatever you want.
Unity Official Materials:
YouTube Videos on Scene Transitions
"How to Fade Between Scenes in Unity" (13min, May 2018) by Brackeys. This video shows how to record a simple animation where you fade a solid color image from transparent to solid black to fade out of a scene, and do the same animation in reverse when a new level loads.
"How to Make Cool Scene Transitions in Unity - Easy Tutorial" (9min, May 2018) by BlackThornProd. Very similar to the above video about fading in an out, but instead you record an animation of a circular sprite enclosing the screen to black. Upon opening the next scene the animation plays in reverse to open up to a new world.