From 3fcd6e19696e93e80054866e3f1b9ea4ce7c2299 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Wed, 20 Aug 2014 15:46:02 +0100 Subject: [PATCH] Added summary for Wait command --- Assets/Fungus/Camera/Commands/FadeToView.cs | 2 +- Assets/Fungus/Camera/Commands/MoveToView.cs | 2 +- Assets/Fungus/FungusScript/Commands/Wait.cs | 7 ++++++- Assets/Shuttle/ShuttleGame.unity | Bin 87580 -> 89228 bytes 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Assets/Fungus/Camera/Commands/FadeToView.cs b/Assets/Fungus/Camera/Commands/FadeToView.cs index 007a02b2..5e62899a 100644 --- a/Assets/Fungus/Camera/Commands/FadeToView.cs +++ b/Assets/Fungus/Camera/Commands/FadeToView.cs @@ -60,7 +60,7 @@ namespace Fungus.Script } else { - return "Fade to " + targetView.name; + return targetView.name; } } } diff --git a/Assets/Fungus/Camera/Commands/MoveToView.cs b/Assets/Fungus/Camera/Commands/MoveToView.cs index cd162d91..97dbb3d1 100644 --- a/Assets/Fungus/Camera/Commands/MoveToView.cs +++ b/Assets/Fungus/Camera/Commands/MoveToView.cs @@ -47,7 +47,7 @@ namespace Fungus.Script } else { - return "Move to " + targetView.name; + return targetView.name; } } } diff --git a/Assets/Fungus/FungusScript/Commands/Wait.cs b/Assets/Fungus/FungusScript/Commands/Wait.cs index 2894cf6a..abb29b8e 100644 --- a/Assets/Fungus/FungusScript/Commands/Wait.cs +++ b/Assets/Fungus/FungusScript/Commands/Wait.cs @@ -7,7 +7,7 @@ namespace Fungus.Script [HelpText("Waits for period of time before executing the next command in the sequence.")] public class Wait : FungusCommand { - public float duration; + public float duration = 1; public override void OnEnter() { @@ -18,6 +18,11 @@ namespace Fungus.Script { Continue(); } + + public override string GetSummary() + { + return duration.ToString() + " seconds"; + } } } \ No newline at end of file diff --git a/Assets/Shuttle/ShuttleGame.unity b/Assets/Shuttle/ShuttleGame.unity index bb52109a2d75d0ce0420bb9cf7e54b0828602b2e..0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