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

public class PointCounter : MonoBehaviour {

	// How many points the player has
	private static int collectedPoints = 0;
	// How many points are needed
	private static int neededPoints = 0;

	// Instantiate an object (preferably with text) to display on
	public GameObject mainCanvas;
	public Text mainScoreDisplay;


	public void Awake ()
	{
		//totalPoints = 0;	
	}


	public void Update ()
	{
		// Define string to display on the Game Screen
		string score = "Score: " + collectedPoints.ToString() + "/" + neededPoints.ToString();
		mainScoreDisplay.text = (score);
	}


	public void Score_Increment(int amount)
	{
		collectedPoints += amount;
	}

}
