Example #1
0
 /// <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;
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     player      = FindObjectOfType <CharaterMove>();
     isFollowing = true;
 }