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.
54 lines
960 B
54 lines
960 B
11 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
using Fungus;
|
||
|
|
||
11 years ago
|
public class ViewRoom : Room
|
||
11 years ago
|
{
|
||
|
public Room menuRoom;
|
||
|
|
||
|
public View mainView;
|
||
|
public View logoView;
|
||
|
public View toadstoolView;
|
||
|
|
||
|
void OnEnter()
|
||
|
{
|
||
|
SetView(mainView);
|
||
|
|
||
|
AddOption("Lets look at the logo", LookLogo);
|
||
|
AddOption("That's a nice toadstool over there", LookToadstool);
|
||
11 years ago
|
AddOption ("Give me the full tour", FullTour);
|
||
11 years ago
|
AddOption("Back to menu", MoveToMenu);
|
||
|
|
||
|
Choose("Wanna move the camera?");
|
||
|
}
|
||
|
|
||
|
void MoveToMenu()
|
||
|
{
|
||
|
MoveToRoom(menuRoom);
|
||
|
}
|
||
|
|
||
|
void LookLogo()
|
||
|
{
|
||
|
PanToView(logoView, 2f);
|
||
|
Wait(2);
|
||
|
PanToView(mainView, 2f);
|
||
|
Call(OnEnter);
|
||
|
}
|
||
|
|
||
|
void LookToadstool()
|
||
|
{
|
||
|
FadeToView(toadstoolView, 2f);
|
||
|
Say("Now that is a pretty mushroom");
|
||
|
Say("Hey - let's go look at that logo");
|
||
|
Call(LookLogo);
|
||
|
}
|
||
11 years ago
|
|
||
|
void FullTour()
|
||
|
{
|
||
|
Say("Let's have a look around here");
|
||
|
PanToPath(10f, logoView, toadstoolView, mainView);
|
||
|
Say("And we're back!");
|
||
|
Call(OnEnter);
|
||
|
}
|
||
11 years ago
|
}
|