Ejemplo n.º 1
0
    void SelectDifficulty()
    {
        if (temporary.GetDiffID() == -1)
        {
            temporary.SetDiffID(index);
        }

        if (temporary.GetMapID() != -1)
        {
            navigation.DisableDifficultyBack();
            loadingManager.ShowLoadingScreen();
            temporary.SwitchScene();
        }
    }
Ejemplo n.º 2
0
    void Start()
    {
        try
        {
            temporary = GameObject.Find("SongSelectManager").GetComponent <SongSelectManager>();
        }
        catch
        {
            throw new EmptyPathException();
        }

        if (temporary.GetMapID() == -1)
        {
            throw new EmptyPathException();
        }

        // Debug.Log(temporary.GetMapID());
        manager.SetPath(paths[temporary.GetMapID()]);
        manager.SetDifficulty(temporary.GetDiffID());
        manager.StartGame();
        // temporary.DestroyObject();
        temporary = null;
    }