public void init(ChaseStrategy chaseStrat) { controls = gameObject.GetComponent <UnityStandardAssets.Vehicles.Car.CarAIControl>(); chaseStrategy = chaseStrat; controls.SetTarget(chaseStrat.pickAttack().getTransform()); isDead = isDecoupled = false; hitPoints = 5; }
private void chooseNextTarget() { controls.SetTarget(chaseStrategy.pickAttack().getTransform()); }