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

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

            projectile.Target = target;
        }