Example #1
0
    private void CreateMadlibsEvent(string[] entry, int i)
    {
        MadlibsEvent e = new MadlibsEvent();

        e.groupID = Convert.ToInt32(entry[0]);
        e.text    = entry[1];
        e.prompt  = entry[2];
        GameManager.madLibsQueue.Enqueue(e);
    }
Example #2
0
    void PopulatePrompts()
    {
        currentMLE = madlibsQueue.Dequeue();
        int labelIndex = 0;

        while (currentMLE.groupID != -1)           //my version of EOL
        {
            madlibsHistory.Add(currentMLE);
            labels[labelIndex].gameObject.SetActive(true);
            inputs[labelIndex].gameObject.SetActive(true);
            labels[labelIndex++].text = currentMLE.prompt;
            currentMLE = madlibsQueue.Dequeue();
        }
    }