Ejemplo n.º 1
0
    public void ShowQuestText(string questText)
    {
        theDM.dialoguelines    = new string[1];
        theDM.dialoguelines[0] = questText;

        theDM.currentline = 0;
        theDM.ShowDialogue();

        /*theDM.textLines = new string[1];
         * theDM.textLines [0] = questText;
         *
         * theDM.currentLine = 0;*/
    }
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.name == "Player")
        {
            if (Input.GetMouseButtonUp(0))
            //if(Input.GetKeyUp(KeyCode.Space))
            {
                //dMan.ShowBox(dialogue);

                if (!dMan.dialogActive)
                {
                    dMan.dialoguelines = dialoguelines;
                    dMan.currentline   = 0;
                    dMan.ShowDialogue();
                }
            }
        }
    }