|
|
@ -2,32 +2,32 @@ using UnityEngine; |
|
|
|
using System.Collections; |
|
|
|
using System.Collections; |
|
|
|
using Fungus; |
|
|
|
using Fungus; |
|
|
|
|
|
|
|
|
|
|
|
public class MenuRoom : Room |
|
|
|
public class MenusRoom : Room |
|
|
|
{ |
|
|
|
{ |
|
|
|
public Room writingRoom; |
|
|
|
public Room pagesRoom; |
|
|
|
public Room viewRoom; |
|
|
|
public Room viewsRoom; |
|
|
|
public Room animationRoom; |
|
|
|
public Room spritesRoom; |
|
|
|
|
|
|
|
|
|
|
|
void OnEnter() |
|
|
|
void OnEnter() |
|
|
|
{ |
|
|
|
{ |
|
|
|
AddOption("1. Writing a story with Pages", MoveToWriting); |
|
|
|
AddOption("1. Writing a story with Pages", MoveToWriting); |
|
|
|
AddOption("2. Controlling the camera with Views", MoveToViews); |
|
|
|
AddOption("2. Controlling the camera with Views", MoveToViews); |
|
|
|
AddOption("3. Using sprites and animations", MoveToAnimations); |
|
|
|
AddOption("3. Using Sprites and Animations", MoveToAnimations); |
|
|
|
Choose("Choose an example"); |
|
|
|
Choose("Choose an example"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MoveToWriting() |
|
|
|
void MoveToWriting() |
|
|
|
{ |
|
|
|
{ |
|
|
|
MoveToRoom(writingRoom); |
|
|
|
MoveToRoom(pagesRoom); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MoveToViews() |
|
|
|
void MoveToViews() |
|
|
|
{ |
|
|
|
{ |
|
|
|
MoveToRoom(viewRoom); |
|
|
|
MoveToRoom(viewsRoom); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MoveToAnimations() |
|
|
|
void MoveToAnimations() |
|
|
|
{ |
|
|
|
{ |
|
|
|
MoveToRoom(animationRoom); |
|
|
|
MoveToRoom(spritesRoom); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |