Example #1
0
    static public void SetNewScene(int index)
    {
        if (currentIndex != -1)
        {
            oldIndex = currentIndex;
        }

        currentIndex = index;
        TurnOffAllScenesExceptActive(index);

        CurrentSceneName = SceneManager.GetSceneAt(index).name;
        Debug.Log("Selection" + CurrentSceneName);
        PageStages page = (PageStages)index;

        BookInfo.currentPage = page;
        BookInfo.SetToCurrentPage();
    }