// Use this for initialization
 void Start()
 {
     enemyScript = gameObject.GetComponentInParent <simpleEnemyAI>();
     healthBar   = gameObject.GetComponent <Image>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     parentScript = gameObject.GetComponentInParent <simpleEnemyAI>();
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     enemy = gameObject.GetComponentInParent <simpleEnemyAI>();
 }