diff --git a/Assets/Fungus/Dialog/Scripts/SayDialog.cs b/Assets/Fungus/Dialog/Scripts/SayDialog.cs index 206ad85d..71fad117 100644 --- a/Assets/Fungus/Dialog/Scripts/SayDialog.cs +++ b/Assets/Fungus/Dialog/Scripts/SayDialog.cs @@ -8,6 +8,8 @@ namespace Fungus.Script public class SayDialog : Dialog { + public Image continueImage; + public void Say(string text, Action onComplete) { Clear(); @@ -18,7 +20,8 @@ namespace Fungus.Script } StartCoroutine(WriteText(text, delegate { - + ShowContinueImage(true); + StartCoroutine(WaitForInput(delegate { Clear(); @@ -34,6 +37,15 @@ namespace Fungus.Script protected override void Clear() { base.Clear(); + ShowContinueImage(false); + } + + void ShowContinueImage(bool visible) + { + if (continueImage != null) + { + continueImage.enabled = visible; + } } IEnumerator WaitForInput(Action onInput) diff --git a/Assets/Shuttle/ShuttleGame.unity b/Assets/Shuttle/ShuttleGame.unity index 9e65e008..be6755e7 100644 Binary files a/Assets/Shuttle/ShuttleGame.unity and b/Assets/Shuttle/ShuttleGame.unity differ