public void GoDown() { if (_at >= childrenCount - 3) { BottomReached?.Invoke(this, EventArgs.Empty); return; } newPosition.y += step; StopAllCoroutines(); StartCoroutine(AnimateMove()); _at++; UpdateButtons(); }
public bool GoDown() { if (_at + 1 >= children.Count) { BottomReached?.Invoke(this, EventArgs.Empty); return(false); } children[_at + 1].GetComponent <Button>().onClick?.Invoke(); StopAllCoroutines(); StartCoroutine(AnimateMove()); return(true); }
public void OnBottomReached() { BottomReached?.Invoke(this, EventArgs.Empty); }