hello people…!
i have a guitext having a script like …
static int score = 0;
static int highScore = 0;
static public void AddPoint() {
score ++;
if (score > highScore) {
highScore = score;
}
}
void Start()
{
score = 0;
highScore = PlayerPrefs.GetInt ("highScore", 0);
}
void OnDestroy()
{
PlayerPrefs.SetInt ("highScore", highScore);
}
void Update()
{
guiText.text = " " + score + "\nHigh Score: " + highScore;
}
}
my first problem is that i want to take those two values (score, highscore)
and use them in my retry/gameover scene!
HOW CAN I DO THAT??
the second problem is that im trying to find a way to make guitext resolution independent and i cant find…
any suggestions??
thanks in advance!