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