예제 #1
0
    //*******************************************
    //END SELECTION METHODS
    //*******************************************


    //*******************************************
    //BEGIN FIND WORLDOBJECTS IN RANGE
    //*******************************************


    public Collider GetNearestEnemyTargetColliderInRange(float range)
    {
        enemyUnitTargetsInRange = WorkManager.DetermineEnemyUnitTargetsInRange(this, range);
        if (enemyUnitTargetsInRange.Count != 0)
        {
            nearestEnemyUnitTargetInRange = WorkManager.DetermineNearestCollider(this, enemyUnitTargetsInRange);
            return(nearestEnemyUnitTargetInRange);
        }
        else
        {
            return(null);
        }
    }