Esempio n. 1
0
 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,
     });
 }
Esempio n. 2
0
 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;
         }
     }
 }