Browse Source

Only show story text on first visit in AudioRoom example

master
chrisgregan 11 years ago
parent
commit
c80f0db7aa
  1. 9
      Assets/FungusExample/Scripts/AudioRoom.cs

9
Assets/FungusExample/Scripts/AudioRoom.cs

@ -26,7 +26,14 @@ public class AudioRoom : Room
AddOption("Play a sound effect", PlaySound);
AddOption("Back to menu", MainMenu);
Choose("We are the music makers, and we are the dreamers of dreams.");
if (IsFirstVisit())
{
Choose("We are the music makers, and we are the dreamers of dreams.");
}
else
{
Choose();
}
}
void StartMusic()

Loading…
Cancel
Save