Esempio n. 1
0
 public void setupAndAddBasicEntityController(BasicEntityController entity)
 {
     entityList.Add(entity.gameObject);
     entity.setDirector(this);
     entity.setPlayer(player);
     entity.targetPlayer();
     for (int k = 0; k < playerCardinals.Count; k++)
     {
         entity.addlocation(playerCardinals[k]);
     }
     entity.idleOff();
 }
Esempio n. 2
0
    private void adjustTargets()
    {
        for (int i = 0; i < entityList.Count; i++)
        {
            if (entityList[i] != null)
            {
                aiController = entityList[i].GetComponent <BasicEntityController>();

                aiController.targetLocationNum(Random.Range(0, 3));
            }
        }
    }
Esempio n. 3
0
 public void ReachedDestination(BasicEntityController entity)
 {
     entity.targetPlayer();
 }
Esempio n. 4
0
 // Start is called before the first frame update
 void Start()
 {
     shotTimer = timeBetweenBullets;
     movement  = GetComponent <BasicEntityController>();
     bullet.GetComponent <BulletBehavior>().setTargetTag(targetTag);
 }