private void Link()
 {
     if (!linked)
     {
         healthBar = FindObjectOfType <HeathBar>();
         healthBar.ResetHealthSlider();
         linked = true;
     }
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     levelController = FindObjectOfType <LevelController>();
     heath           = FindObjectOfType <HeathBar>();
     currentHealth   = 1;
 }