From 1c563183ea4a01186e8e50072986d75603dd669c Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Tue, 11 Mar 2014 17:28:00 +0000 Subject: [PATCH] Added RemoveAndFadeButton() command --- Assets/Fungus/Scripts/Commands.cs | 3 ++- Assets/Fungus/Scripts/GameController.cs | 15 +++++++++++++++ Assets/FungusExample/Scripts/ButtonRoom.cs | 3 +++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Assets/Fungus/Scripts/Commands.cs b/Assets/Fungus/Scripts/Commands.cs index 315d3cf5..32cd945d 100644 --- a/Assets/Fungus/Scripts/Commands.cs +++ b/Assets/Fungus/Scripts/Commands.cs @@ -474,7 +474,7 @@ namespace Fungus } /** - * Makes a sprite stop behaving as a clickable button + * Makes a sprite stop behaving as a clickable button. */ public class RemoveButtonCommand : CommandQueue.Command { @@ -493,6 +493,7 @@ namespace Fungus public override void Execute(CommandQueue commandQueue, Action onComplete) { + // Remove the button component Button button = spriteRenderer.gameObject.GetComponent