Beispiel #1
0
    /* Show Click To Start
     *   Shows the "Click Anywhere To Continue" Text and allows the scene to change once all scores
     *   are displayed.
     */
    public void ShowClickToContinue()
    {
        //checks if the total score is done increasing
        if (currTotEarnings == totEarnings)
        {
            clickToContinue.gameObject.SetActive(true);

            if (Input.GetMouseButtonDown(0))
            {
                done = true;
                player.SyncPrevMoney();
                player.IncDay();

                //fades to the next scene on left mouse button click
                fader.FadeToLevel(1);
                //gameObject.GetComponent<DayComp>().enabled = false;
            }
        }
    }