/// <summary> /// This function will be resposible for redrawing the list and keeping track of current health and max health. /// </summary> void UpdateHearts() { HeartIcons = GetComponentsInChildren <HeartIcon>().ToList(); LocalPlayer = FindObjectOfType <CharaterMove>(); LocalPlayer.MaxHealth = (HeartIcons.Count) * 4; LocalPlayer.CurHealth = LocalPlayer.MaxHealth; }
// Use this for initialization void Start() { player = FindObjectOfType <CharaterMove>(); isFollowing = true; }