예제 #1
0
    public void Restart()
    {
        if (canRestart)
        {
            StatsManager.Instance.totalFails++;

            stars = 0;

            canRestart = false;

            HideTutorial();
            stack.ClearHand();

            if (treeFirst)
            {
                treeFirst.Explode();
            }

            CancelInvoke("DelayedRestart");
            Invoke("DelayedRestart", 1f);

            Invoke("EnableRestart", 2f);
        }
    }