public override void AddDot(CollectionDot dot) { dot.transform.SetParent(transform); dot.ShowRadius(true); _catchers.Add(new Catcher() { position = dot.rect.anchoredPosition, radius = dot.radiusValue, value = dot.value, dot = dot, }); }
public override void DetachDot(CollectionDot dot) { dot.ShowRadius(false); for (var i = 0; i < _catchers.Count; i++) { if (_catchers[i].dot == dot) { _catchers.RemoveAt(i); break; } } }