My player needs to have an certain amount of point . If he or she want to advance to the next level . I want the ApplicationLevel to load up when player reaches the points. Here is what I got so far :
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class ScoreManager : MonoBehaviour {
public static int Points;
Text text;
public static bool canContinue = false ;
void Awake ()
{
text = GetComponent <Text>();
Points = 0;
}
void Update ()
{
{
text.text = "Points:" + Points;
}
if (Points < 40)
{
canContinue = false;
}
else if (Points < 60)
{
canContinue = true;
Application.LevelLoad("MEP_Scene_05");
}
}
}