- Home /
Answer by HadrienS · Sep 17, 2012 at 01:02 AM
You'll need to create first a gameObject guiText, then you put a script on it, something like
static var score : int;
function OnGUI()
{
guiText.text = "You killed :" + score;
}
Then when an ennemy die you'll just have to increment the score this way :
scriptname.score += 1;
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Gui text, ammo counter 1 Answer
3D ^ Custom GUIText/Label or Making a Score System without using GUI? 0 Answers
Count the Score 1 Answer