Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     seekComponent     = GetComponent <SeekAI>();
     shootingComponent = GetComponent <Enemy>();
     enemyComponent    = GetComponent <Enemy>();
     nextPoint         = transform.position;
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     seekComponent     = GetComponent <SeekAI>();
     shootingComponent = GetComponent <Enemy>();
     if (seekComponent != null)
     {
         target = seekComponent.target;
     }
 }