Beispiel #1
0
    //for the first display block
    public void OnMouseDown()
    {
        //QuestManagerScript.DisplayText(defaultText, giverName);
        //QuestManagerScript.accepted = accepted;
        //QuestManagerScript.declined = declined;
        cursorScript.SpeechCursor();
        dialoguePanel.GetComponentInChildren <Text>().text = defaultText;
        dialoguePanel.alpha          = 1;
        dialoguePanel.interactable   = true;
        dialoguePanel.blocksRaycasts = true;

        questList.Enqueue(firstQuest);
        questList.Enqueue(secondQuest);
        foreach (Quest q in questList)
        {
            if (q.questState != Quest.State.Unavailable)
            {
                GameObject instance = Instantiate(questPrefab) as GameObject;
                instance.transform.SetParent(dialogueContent.transform, false);
            }
        }
    }