Ejemplo n.º 1
0
    public void OpenProgress(string id, List <string> books)
    {
        m_progress            = new Progress(m_RootPath);
        m_progress.ProgressID = id;
        foreach (string book in books)
        {
            m_progress.AddBook(book);
        }
        m_progress.Load(m_RootPath);

        PanelMain panelMainScript = (PanelMain)m_panelMain.GetComponent(typeof(PanelMain));

        panelMainScript.BookProgress = m_progress;
        panelMainScript.ResetState();
        SwitchToPanel(m_panelMain);
    }
Ejemplo n.º 2
0
    public void CreateNewProfile(string id, List <string> books)
    {
        Progress progress = new Progress(m_RootPath);

        progress.ProgressID = id;
        foreach (string book in books)
        {
            progress.AddBook(book);
        }
        progress.Save(m_RootPath);

        m_availableProgress.RecollectProgress(m_RootPath);
        m_profileSetup.InitProfiles(m_availableProgress);

        SwitchToPanel(m_panelSetup);
    }