This is C# and sorry about that. You must also tag the player as “Player”. What this is doing is running this function whenever anything touches it, and if the tag is “Player” it will load the selected level.
P.S If you have a 3D game, just Change “OnTriggerEnter2D” to “OnTriggerEnter”, and change “Collision2D” To “Collision”.
Thanks both for your answers… It seems I cant set the unity correctly to behave according to the script…What I basicly did was adding this script to the a cube i wanted to use as a winpoint… But when the player touches it , nothing happens