Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     enemy  = FindObjectOfType <EnemyShootHoming> ();
     target = enemy.Target;
     speed  = enemy.missileSpeed;
     rb2d   = gameObject.GetComponent <Rigidbody2D>();
     player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     enemyAI = gameObject.GetComponentInParent <EnemyShootHoming>();
 }