//---------------------------------------------------------------------
        // Helpers
        //---------------------------------------------------------------------

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

            projectile.Target = target;
        }