//--------------------------------------------------------------------- // Helpers //--------------------------------------------------------------------- private void AquireNewTarget() { _target = TargetsInRange.Count > 0 ? TargetsInRange[0] : null; }
public void Shoot(EnemyScript target, Transform position) { var projectile = GetInstance(position, Level); projectile.Target = target; }