Skip to content
Permalink
3a8c711b32
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
71 lines (58 sloc) 1.92 KB
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class LevelScript : MonoBehaviour
{
public static int levelValue = 0;
Text level;
void Start()
{
level = GetComponent<Text>();
}
// Update is called once per frame
void Update()
{
level.text = "Level:" + levelValue + "/10";
if (ScoreScript.scoreValue >= 100 && ScoreScript.scoreValue < 200 )
{
level.text = "Level:" + (levelValue + 1) + "/10";
}
if (ScoreScript.scoreValue >= 200 && ScoreScript.scoreValue < 300)
{
level.text = "Level:" + (levelValue + 2) + "/10";
}
if (ScoreScript.scoreValue >= 300 && ScoreScript.scoreValue < 400)
{
level.text = "Level:" + (levelValue + 3) + "/10";
}
if (ScoreScript.scoreValue >= 400 && ScoreScript.scoreValue < 500)
{
level.text = "Level:" + (levelValue + 4) + "/10";
}
if (ScoreScript.scoreValue >= 500 && ScoreScript.scoreValue < 600)
{
level.text = "Level:" + (levelValue + 5) + "/10";
}
if (ScoreScript.scoreValue >= 600 && ScoreScript.scoreValue < 700)
{
level.text = "Level:" + (levelValue + 6) + "/10";
}
if (ScoreScript.scoreValue >= 700 && ScoreScript.scoreValue < 800)
{
level.text = "Level:" + (levelValue + 7) + "/10";
}
if (ScoreScript.scoreValue >= 800 && ScoreScript.scoreValue < 900)
{
level.text = "Level:" + (levelValue + 8) + "/10";
}
if (ScoreScript.scoreValue >= 900 && ScoreScript.scoreValue < 1000)
{
level.text = "Level:" + (levelValue + 9) + "/10";
}
if (ScoreScript.scoreValue >= 1000 && ScoreScript.scoreValue < 10000000)
{
level.text = "Level:" + "Final Round";
}
}
}