Example #1
0
    void Start()
    {
        Debug.Log("VW: Starting the word list view!");

        MAS_WordEditing tempMaster = (MAS_WordEditing)COM_Director.GetMaster("MAS_WordEditing");

        model = (MOD_WordEditing)tempMaster.GetModel("MOD_WordEditing");

        List <string> wordSetsList = new List <string>();

        tutorialObjects = new List <GameObject>();

        tutorialObjects = GameObject.FindGameObjectsWithTag("tutorial").ToList();

        Debug.Log("******************************************* tutorial objects = ");
        foreach (GameObject obj in tutorialObjects)
        {
            Debug.Log(obj.name + " found with tutorial tag");
        }

        controller = (CON_WordEditing)tempMaster.GetController("CON_WordEditing");

        // TODO: Remove this when DomainShift functionality is in both the MasterClass and
        // AB_Model
        controller.PopulateInUseSet();
        //////////////////////////////////////////////////////////////////////////////////

        DisplayScrollViewWords();


        StartCoroutine(CreateDLCButtons());

        StartCoroutine(DownloadWordSetsList());

        if (PlayerPrefs.GetInt("isTutorial") == 1)
        {
            foreach (GameObject obj in tutorialObjects)
            {
                obj.SetActive(false);
            }
            HelpButtonIconOff.SetActive(true);
            HelpButtonIconOn.SetActive(false);
            tutorialPanel1.SetActive(true);
        }
        else
        {
            foreach (GameObject obj in tutorialObjects)
            {
                obj.SetActive(false);
            }
            HelpButtonIconOff.SetActive(false);
            HelpButtonIconOn.SetActive(true);
        }
    }