void Update() { // Update _has_ball var. HasBall = false; foreach (Player p in players) { if (p.HasBall) { HasBall = true; } } _last_sort -= Time.deltaTime; scoreText.text = Goals.ToString(); }