Go to a new scene.

Can ssomeone help me get the code for going to a new scene when I hit a key at the end of my level? It is a 2d platformer and I would like to add more levels. Thanks!

try Application.LoadLevel

that’s being deprecated in favour of scenemanager.loadlevel