Beispiel #1
0
    public void init(ChaseStrategy chaseStrat)
    {
        controls = gameObject.GetComponent <UnityStandardAssets.Vehicles.Car.CarAIControl>();

        chaseStrategy = chaseStrat;

        controls.SetTarget(chaseStrat.pickAttack().getTransform());

        isDead = isDecoupled = false;

        hitPoints = 5;
    }
Beispiel #2
0
 private void chooseNextTarget()
 {
     controls.SetTarget(chaseStrategy.pickAttack().getTransform());
 }