Пример #1
0
 public void AddTarget(BaseTarget target)
 {
     if (!_targets.Contains(target))
     {
         _targets.Add(target);
         _dirty = true;
     }
 }
Пример #2
0
 public void RemoveTarget(BaseTarget target)
 {
     if (_targets.Contains(target))
     {
         target.onNonHighlight();
         _targets.Remove(target);
         _dirty = true;
     }
     //SelectableManager.instance.RemoveSelectable(target.gameObject);
 }