Ejemplo n.º 1
0
 private void Awake()
 {
     health = GameObject.FindWithTag("Player").GetComponent <Health>();
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     health  = GameObject.Find("Player").GetComponent <Health>();
     fighter = GameObject.Find("Player").GetComponent <Fighter>();
 }