From ab68d6056522280d4f4276426d460dbe93cd2501 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Tue, 11 Mar 2014 15:51:35 +0000 Subject: [PATCH] Add comments in ButtonRoom.cs to explain behaviour. --- Assets/FungusExample/Scripts/ButtonRoom.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/FungusExample/Scripts/ButtonRoom.cs b/Assets/FungusExample/Scripts/ButtonRoom.cs index 286a6afa..4fd2ac25 100644 --- a/Assets/FungusExample/Scripts/ButtonRoom.cs +++ b/Assets/FungusExample/Scripts/ButtonRoom.cs @@ -26,6 +26,8 @@ public class ButtonRoom : Room Say("The Mushroom read his book with great interest."); Say("After turning the last page, he considered his options."); + // Once the last Say command executes the page will dissappear because there's no more content to show. + // At that point, the game will automatically fade in all Auto Buttons in the room } void OnHomeClicked() @@ -40,7 +42,9 @@ public class ButtonRoom : Room void OnQuestionClicked() { + // All Auto Buttons are automatically hidden as soon as the page has more content to show + Say("What book was he reading?"); - Say("Perhaps we will never know for sure."); + Say("Sadly we will never know for sure."); } }