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(); }
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)); } } }
public void ReachedDestination(BasicEntityController entity) { entity.targetPlayer(); }
// Start is called before the first frame update void Start() { shotTimer = timeBetweenBullets; movement = GetComponent <BasicEntityController>(); bullet.GetComponent <BulletBehavior>().setTargetTag(targetTag); }