// Use this for initialization void Start() { Score = 1f; AverageScore = -1f; Cooked = 0; PattiesCooked.text = Message + Cooked.ToString(); }
// Update is called once per frame void Update() { if (Timer.GameOver && !ScoreDone) { Score = CalculateScore(); ScoreDone = true; } PattiesCooked.text = Message + Cooked.ToString(); }