public class ScoreScript : MonoBehaviour
{
public int Score = 0;
private void Start()
{
GetComponent<Text>().text = "Your points: 0";
}
public void ChangeScore (int score)
{
Score += score;
GetComponent<Text>().text = "Your points: " + Score.ToString();
}
}