Beispiel #1
0
    public void Run()
    {
        if (!curGrid)
        {
            return;
        }

        CGrid grid = map.GetNextGrid(curGrid);

        if (grid)
        {
            curGrid = grid;

            Tweener jumpTween = ShortcutExtensions46.DOAnchorPos(transform as RectTransform, (grid.transform as RectTransform).anchoredPosition, 1);
            jumpTween.SetEase(Ease.InOutQuint);
            anim.Play("jump");

            if (curGrid.minStep == 1)
            {
                map.EndGame();
            }
        }
        else
        {
            map.EndGame();
        }
    }