/// <summary> /// Add a target leader to the HUD target boxes. /// </summary> /// <param name="targetLeader">The target leader to add.</param> public virtual void AddTargetLeader(TargetLeader targetLeader) { if (!targetLeaders.Contains(targetLeader)) { targetLeaders.Add(targetLeader); } }
/// <summary> /// Remove a target leader from the HUD target boxes. /// </summary> /// <param name="targetLeader">The target leader to remove.</param> public virtual void RemoveTargetLeader(TargetLeader targetLeader) { int index = targetLeaders.IndexOf(targetLeader); if (index != -1) { targetLeaders.RemoveAt(index); } }