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

public class StockManager : MonoBehaviour {

	public PlayerController player;

	public Text text;

	// Use this for initialization
	void Start () {
		player = FindObjectOfType<PlayerController> ();
	}
	
	// Update is called once per frame
	void Update () {
		text.text = "STOCK: " + player.numberOfStocks ();
	}
}
