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

public class CountPoints : MonoBehaviour {
    
	void Start () {
		transform.parent.GetComponent<CanvasScaler>().scaleFactor = Screen.height / 450f;
	}
	
	void Update () {
	
		GetComponent<Text> ().text = "Night " + GameController.instance.day.ToString() + "\nDrugs Collected: " + GameController.instance.points.ToString ()
			+ "\nDrugs in City: " + GameController.instance.drugCount.ToString() + "\n$" + GameController.instance.money.ToString ();
	}
}
