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