예제 #1
0
    public void PreviousPage()
    {
        currentPage._OnLived();


        deathTime  = Time.time;
        pageActive = 0;

        ursula.Unlock();


        if (currentPage.previousPage != null)
        {
            currentPage._OnDie();

            inChapter = true;

            print("hasPreviousPAge");

            SetPage(currentPage.previousPage);

            currentPage._OnGestate();
            StartPage();
        }
        else
        {
            print("No More Pages");
            inChapter        = false;
            controls.enabled = true;
            controls.SetAfterPage();
            Chapter tmp = currentChapter;
            currentChapter.DeactivateChapter();
            tmp.ActivateChapter();

            ursula.Unlock();
        }


        audio.Play(pageEndClip);
    }