Beispiel #1
0
    public void Select(GameMode currentGameMode)
    {
        // TODO: Figure out game mode specifics...

        selectionState = SelectionState.selected;

        tileAnimator.DoSelectedTween(0f, OnSelectTweenFinished);
    }
    public void PlayCollectLastStandingTilesAnimation(float resizeDelay, float collectDelay)
    {
        for (int i = 0; i < tileList.Count; i++)
        {
            TileAnimator tileAnimator = tileList[i].GetComponent <TileAnimator>();

            float delay = resizeDelay * i;

            tileAnimator.DoSelectedTween(delay, () =>
            {
                tileAnimator.DoCollectTween(collectDelay, () =>
                {
                    OnCollectAnimationFinished(tileAnimator);
                });
            });
        }
    }