using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class Scorekeeper : MonoBehaviour
{

    public static int score = 0;

    private Text text;

    void Start()
    {
        text = GetComponent<Text>();
        Reset();
    }

    public void Score(int points)
    {
        score += points;
        text.text = score.ToString();
    }

    public static void Reset()
    {
        score = 0;
    }


}
