- Home /
 
 
               Question by 
               Gusic · Mar 14, 2014 at 10:46 PM · 
                2dbeginnerplatformer  
              
 
              Help With Next Level Script
Hi Guys, guys i have a script for next level i am trying to make this script work but it wont work.
 using UnityEngine;
 using System.Collections;
 
 public class NextLevel : MonoBehaviour {
     // Use this for initialization
     void Start () 
     {
         
     }
     
     // Update is called once per frame
     void Update () 
     {
         
     }
 
     void OnTriggerEnter2D(Collider2D collision)
     {
         if (collision.gameObject.tag == "Finish") 
         {
             Application.LoadLevel(Level); 
         }
     }
 }
 
               Thank You
               Comment
              
 
               
               
               Wiki 
              
 
              Answer by Zaphyk · Mar 14, 2014 at 11:22 PM
What is Level? Is the name of the level? Okay if is it, try this.
 Application.LoadLevel("Level");
 
               The name of the level should be in ""
Answer by Gusic · Mar 15, 2014 at 09:12 AM
no i want Level to be like a string so i can drop scenes into it in the inspector
Your answer
 
             Follow this Question
Related Questions
Staring a 2D game 2 Answers
animation 2d platformer 2 Answers
jittery jumping 2D character 0 Answers
[Answered] How can you set an animation to run based on certain functions or key presses? 2 Answers