Esempio n. 1
0
    void GoBack()
    {
        if (!isHiding)                                                  // if the clipboard is visible
        {
            if (buttonState == 0)                                       // click the "back" button to return to calendar
            {
                createAndDestroyLevelRef.ReturnToCalendar();
            }

            else if (buttonState == 2)
            {
                HideClipboard();                                              // if clicking the "done" button from the results screen, go back to clipboard
                Invoke("SwapClipboardPages", timeToSwap);
            }
        }
        else
        {
            if (buttonState == 1)                               // click the "back" button to give up on the level
            {
                createAndDestroyLevelRef.RoundEnd(false);
            }
        }
    }