An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.1 KiB

using UnityEngine;
using System.Collections;
namespace Fungus.Example
{
public class MenuRoom : Room
{
public Room dialogRoom;
public Room viewRoom;
public Room spriteRoom;
public Room parallaxRoom;
public Room buttonRoom;
public Room audioRoom;
void OnEnter()
{
SetCharacter("Narrator");
AddOption("Telling a story with the Dialog", MoveToDialogRoom);
AddOption("Controlling the camera with Views", MoveToViewRoom);
AddOption("Sprites and Animations", MoveToSpriteRoom);
AddOption("Swipe panning and parallax", MoveToParallaxRoom);
AddOption("Using Buttons", MoveToButtonsRoom);
AddOption("Playing music and sound effects", MoveToAudioRoom);
Say("Choose an example");
}
void MoveToDialogRoom()
{
MoveToRoom(dialogRoom);
}
void MoveToViewRoom()
{
MoveToRoom(viewRoom);
}
void MoveToSpriteRoom()
{
MoveToRoom(spriteRoom);
}
void MoveToParallaxRoom()
{
MoveToRoom(parallaxRoom);
}
void MoveToButtonsRoom()
{
MoveToRoom(buttonRoom);
}
void MoveToAudioRoom()
{
MoveToRoom(audioRoom);
}
}
}