How can i make it so when i kill an enemy in GUI text it say one, then if i kill another two and so on??
Thanks for the help
How can i make it so when i kill an enemy in GUI text it say one, then if i kill another two and so on??
Thanks for the help
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;