|
Free Java Script - Score
[Back]
Code:
To get this script to work
First make a GUI Text
then put this script onto it
//Script Start
#pragma strict
static var Score = 0;
var text: GUIText;
function OnGUI()
{
guiText.fontSize = 20;
text.guiText.text = "Score:" + Score;
}
//Script End
First make a GUI Text
then put this script onto it
//Script Start
#pragma strict
static var Score = 0;
var text: GUIText;
function OnGUI()
{
guiText.fontSize = 20;
text.guiText.text = "Score:" + Score;
}
//Script End