So I was looking at the 2D ‘Tower Defense’ tutorial on the Unity homepage and decided to recreate it. After I finished, I wanted to also start make new levels with more enemies, so does anyone know how to write a code so that once the character gets enough points, they move onto the next level? I have text at the bottom that displays ‘Level 1- Get 500 Points’ on awake but I’m not sure how to exactly trigger that… Any help or suggestions would be great, thanks.
if(points==anyAmount){
Application.LoadLevel(levelName);
}