Example #1
0
    void Start()
    {
        MAS_WordEditing tempMaster = (MAS_WordEditing)COM_Director.GetMaster("MAS_WordEditing");

        model         = (MOD_WordEditing)tempMaster.GetModel("MOD_WordEditing");
        controller    = (CON_WordEditing)tempMaster.GetController("CON_WordEditing");
        activeButtons = 0;
        CleanUpScroll();
        EditOrAdd();
        CleanUpScroll();
        DisplayGallery();
        SetUpWordTags();
        wordTagsOriginal = wordTags;

        clip             = controller.GetExistingAudioClip();
        sourceAudio.clip = clip;



        if (Microphone.devices.Length < 0)
        {
            micName = Microphone.devices[0];
        }
        else
        {
            Debug.Log("Could not find any microphone devices");
        }

        if (PlayerPrefs.GetInt("isTutorial") == 1)
        {
            tutorialPanel.SetActive(true);
        }
    }
Example #2
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);
        }
    }
Example #3
0
 public override void GetCoworkers(MasterClass master)
 {
     model = (MOD_WordEditing)master.GetModel("MOD_WordEditing");
 }