public override void DetachDot(CollectionDot dot) { for (var i = 0; i < _tickers.Count; i++) { if (_tickers[i].value == dot.value) { _tickers.RemoveAt(i); break; } } }
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; } } }
public override void AddDot(CollectionDot dot) { Destroy(dot.gameObject); collection.AddValue(dot.value); }
public override void DetachDot(CollectionDot dot) { Debug.Log(dot.value); collection.DetachDot(dot.gameObject); collection.AddValue(-dot.value); }
public override void AddDot(CollectionDot dot) { dot.transform.SetParent(transform); _tickers.Add(new Ticker(dot.value)); }
public override void AddDot(CollectionDot dot) { Destroy(dot.gameObject); tinter.Blink(new Color(0.3f, 0.3f, 0.1f)); _progress += _progressPerDot * dot.value; }
public abstract void AddDot(CollectionDot dot);
public virtual void DetachDot(CollectionDot dot) { }