From fd0fbf08507cb8987a66277b6d2f03971d916aac Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Tue, 26 Aug 2014 16:17:31 +0100 Subject: [PATCH] Added ShowDialog() --- Assets/Fungus/Dialog/Scripts/DialogController.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/Fungus/Dialog/Scripts/DialogController.cs b/Assets/Fungus/Dialog/Scripts/DialogController.cs index 051dff1b..b17b52cd 100644 --- a/Assets/Fungus/Dialog/Scripts/DialogController.cs +++ b/Assets/Fungus/Dialog/Scripts/DialogController.cs @@ -32,6 +32,14 @@ namespace Fungus.Script List optionActions = new List(); + public void ShowDialog(bool visible) + { + if (dialogCanvas != null) + { + dialogCanvas.gameObject.SetActive(visible); + } + } + public void SetCharacter(Character character) { if (character == null)