public void ShowQuestText(string questText) { Dm.DialogLines = new string[1]; Dm.DialogLines [0] = questText; Dm.currentLine = 0; Dm.ShowDialog(); }
void OnTriggerStay2D(Collider2D other) { if (other.gameObject.name == "Player") { if (Input.GetKeyUp(KeyCode.Space)) { //Dman.ShowBox (dialogue); if (!Dman.DialogActive) { Dman.DialogLines = dialogueLines; Dman.currentLine = 0; Dman.ShowDialog(); //pm.MovementSpeed = 0f; } } } }