Hi i am working on a pong type game and the score is a timer, but the problem is im trying to reset my score to zero when i go back to title screen. My code for score:
`var score1 : TextMesh;
static var score : int = 0;
function Awake()
{
InvokeRepeating(“UpdateScore”, 0.05, 0.05);
}
function UpdateScore()
{
score += 1;
score1.text = “” + score.ToString();
}`