Hello so i have a script & it displays the score correctly but when i press restart the score remains the same how do i get it to reset when i press the restart button?
using UnityEngine.UI;
public class ScoreScript : MonoBehaviour {
public static int scoreValue = 0;
Text score;
// Use this for initialization
void Start () {
score = GetComponent<Text>();
}
// Update is called once per frame
void Update () {
score.text = "Score:" + scoreValue;
}
}