// Use this for initialization
	void Start () {
		playerClass = GameObject.FindObjectOfType<PlayerClass>();
		maxEnergy = playerClass.GetMaxEnergy();

		energyBarImage = GetComponent<Image>();
		playerEnergyText = GetComponentInChildren<Text>();
	}