Exemplo n.º 1
0
 protected override void OnPressed06(DotBehavior dot)
 {
     if (_dotsPressed[dot.Id - 1] == true)
     {
         return;
     }
     _dotsPressed[dot.Id - 1] = true;
     ScaleUtil.MakeBiggest(dot);
     ShowNext();
 }
Exemplo n.º 2
0
    private void ShowNext()
    {
        if (_count <= 0)
        {
            DelayedRun(() => {
                GotoNextPage();
            }, NextPageDelay);
            return;
        }

        var randomIdx = UnityEngine.Random.Range(0, _dotsToShow.Count - 1);
        var dotsIdx   = _dotsToShow.ElementAt(randomIdx);

        _dotsToShow.RemoveAt(randomIdx);

        var dot = Controller.DotsBehavior[dotsIdx];

        ScaleUtil.MakeSmallest(dot);
        ShowDot(dot.Id + 1);
        _count--;
    }
Exemplo n.º 3
0
 protected override void OnPressed01(DotBehavior dot)
 {
     DelayedRun(() => {
         ScaleUtil.MakeBigger(dot);
     }, AnyActionDelay);
 }