void Awake()
        {
            targetScript = gameObject.GetComponent <TacticalAI.TargetScript>();

            //If no teams are provided, then look for agents that are on the same team as the target we are modifying.
            if (teamNumbersToLookFor.Length == 0)
            {
                teamNumbersToLookFor    = new int[1];
                teamNumbersToLookFor[0] = targetScript.myTeamID;
            }

            //Square the radius so that we don't have to use costly SqrRoot
            SetRadiusToIncrease(radiusToIncreasePriority);
        }
Exemple #2
0
 //Setters
 public void SetTargetObj(TacticalAI.TargetScript x)
 {
     myTargetScript = x;
 }