// Start is called before the first frame update void Start() { controller = GetComponentInParent <wasdCharacterController>(); heroScore = GetComponentInParent <Score>(); }
private void Start() { curEnergyLevel = maxEnergyLevel; controller = GetComponentInParent <wasdCharacterController>(); energyText = GameObject.Find("EnergyUI").GetComponent <Text>(); }