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.
34 lines
581 B
34 lines
581 B
11 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
using Fungus;
|
||
|
|
||
11 years ago
|
public class MenusRoom : Room
|
||
11 years ago
|
{
|
||
11 years ago
|
public Room pagesRoom;
|
||
|
public Room viewsRoom;
|
||
|
public Room spritesRoom;
|
||
11 years ago
|
|
||
|
void OnEnter()
|
||
|
{
|
||
|
AddOption("1. Writing a story with Pages", MoveToWriting);
|
||
|
AddOption("2. Controlling the camera with Views", MoveToViews);
|
||
11 years ago
|
AddOption("3. Using Sprites and Animations", MoveToAnimations);
|
||
11 years ago
|
Choose("Choose an example");
|
||
|
}
|
||
|
|
||
|
void MoveToWriting()
|
||
|
{
|
||
11 years ago
|
MoveToRoom(pagesRoom);
|
||
11 years ago
|
}
|
||
|
|
||
|
void MoveToViews()
|
||
|
{
|
||
11 years ago
|
MoveToRoom(viewsRoom);
|
||
11 years ago
|
}
|
||
|
|
||
11 years ago
|
void MoveToAnimations()
|
||
|
{
|
||
11 years ago
|
MoveToRoom(spritesRoom);
|
||
11 years ago
|
}
|
||
11 years ago
|
}
|