Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class AntonScore : MonoBehaviour
{
public static int score;
public static int score2;
public static int highscore;
Text text;
// Use this for initialization
void Start()
{
text = GetComponent<Text>();
score = 0;
highscore = PlayerPrefs.GetInt("highscore", highscore);
text.text = highscore.ToString();
}
void Awake()
{
text = GetComponent<Text>();
score = 0;
}
void Update()
{
if (score > highscore)
{
highscore = score;
text.text = "Score:" + score;
PlayerPrefs.SetInt("highscore", highscore);
}
text.text = "Score:" + score;
}
}
Post this on the walls of the 12 prettiest Girls you know
❤¸.•*""*•. ¸❤ ❤¸.•*""*•. ¸❤ ❤¸.•*""*•. ¸❤