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.

56 lines
1020 B

using UnityEngine;
using System.Collections;
using Fungus;
public class MenuRoom : Room
{
public Room pageRoom;
public Room viewRoom;
public Room spriteRoom;
public Room parallaxRoom;
public Room buttonRoom;
public Room audioRoom;
void OnEnter()
{
SetPageMiddle();
AddOption("Writing a story with Pages", MoveToWritingRoom);
AddOption("Controlling the camera with Views", MoveToViewRoom);
AddOption("Sprites and Animations", MoveToSpriteRoom);
AddOption("Manual pan and parallax", MoveToParallaxRoom);
AddOption("Using Buttons", MoveToButtonsRoom);
AddOption("Playing music and sound effects", MoveToAudioRoom);
Choose("Choose an example");
}
void MoveToWritingRoom()
{
MoveToRoom(pageRoom);
}
void MoveToViewRoom()
{
MoveToRoom(viewRoom);
}
void MoveToSpriteRoom()
{
MoveToRoom(spriteRoom);
}
void MoveToParallaxRoom()
{
MoveToRoom(parallaxRoom);
}
void MoveToButtonsRoom()
{
MoveToRoom(buttonRoom);
}
void MoveToAudioRoom()
{
MoveToRoom(audioRoom);
}
}