コード例 #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();
 }
コード例 #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));
            }
        }
    }
コード例 #3
0
 public void ReachedDestination(BasicEntityController entity)
 {
     entity.targetPlayer();
 }
コード例 #4
0
ファイル: RangerController.cs プロジェクト: Skal3r/Teflets
 // Start is called before the first frame update
 void Start()
 {
     shotTimer = timeBetweenBullets;
     movement  = GetComponent <BasicEntityController>();
     bullet.GetComponent <BulletBehavior>().setTargetTag(targetTag);
 }