Browse Source

Refactored example room names.

master
chrisgregan 11 years ago
parent
commit
32217223e8
  1. BIN
      Assets/FungusExample/Scenes/Example.unity
  2. 16
      Assets/FungusExample/Scripts/MenusRoom.cs
  3. 0
      Assets/FungusExample/Scripts/MenusRoom.cs.meta
  4. 2
      Assets/FungusExample/Scripts/PagesRoom.cs
  5. 0
      Assets/FungusExample/Scripts/PagesRoom.cs.meta
  6. 4
      Assets/FungusExample/Scripts/SpritesRoom.cs
  7. 0
      Assets/FungusExample/Scripts/SpritesRoom.cs.meta
  8. 2
      Assets/FungusExample/Scripts/ViewsRoom.cs
  9. 0
      Assets/FungusExample/Scripts/ViewsRoom.cs.meta

BIN
Assets/FungusExample/Scenes/Example.unity

Binary file not shown.

16
Assets/FungusExample/Scripts/MenuRoom.cs → Assets/FungusExample/Scripts/MenusRoom.cs

@ -2,32 +2,32 @@ using UnityEngine;
using System.Collections;
using Fungus;
public class MenuRoom : Room
public class MenusRoom : Room
{
public Room writingRoom;
public Room viewRoom;
public Room animationRoom;
public Room pagesRoom;
public Room viewsRoom;
public Room spritesRoom;
void OnEnter()
{
AddOption("1. Writing a story with Pages", MoveToWriting);
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");
}
void MoveToWriting()
{
MoveToRoom(writingRoom);
MoveToRoom(pagesRoom);
}
void MoveToViews()
{
MoveToRoom(viewRoom);
MoveToRoom(viewsRoom);
}
void MoveToAnimations()
{
MoveToRoom(animationRoom);
MoveToRoom(spritesRoom);
}
}

0
Assets/FungusExample/Scripts/MenuRoom.cs.meta → Assets/FungusExample/Scripts/MenusRoom.cs.meta

2
Assets/FungusExample/Scripts/WritingRoom.cs → Assets/FungusExample/Scripts/PagesRoom.cs

@ -2,7 +2,7 @@
using System.Collections;
using Fungus;
public class WritingRoom : Room
public class PagesRoom : Room
{
// This is a reference to the menu room so we can transition back to the menu using MoveToRoom()
public Room menuRoom;

0
Assets/FungusExample/Scripts/WritingRoom.cs.meta → Assets/FungusExample/Scripts/PagesRoom.cs.meta

4
Assets/FungusExample/Scripts/AnimationRoom.cs → Assets/FungusExample/Scripts/SpritesRoom.cs

@ -2,7 +2,7 @@
using System.Collections;
using Fungus;
public class AnimationRoom : Room
public class SpritesRoom : Room
{
public Room menuRoom;
public Animator blueAlienAnim;
@ -43,6 +43,8 @@ public class AnimationRoom : Room
FadeSprite(blueAlienSprite, 0, 1f);
Wait(1f);
Say("Heh. That Blue Alien - what a guy!");
MoveToRoom(menuRoom);
}
}

0
Assets/FungusExample/Scripts/AnimationRoom.cs.meta → Assets/FungusExample/Scripts/SpritesRoom.cs.meta

2
Assets/FungusExample/Scripts/ViewRoom.cs → Assets/FungusExample/Scripts/ViewsRoom.cs

@ -2,7 +2,7 @@
using System.Collections;
using Fungus;
public class ViewRoom : Room
public class ViewsRoom : Room
{
public Room menuRoom;

0
Assets/FungusExample/Scripts/ViewRoom.cs.meta → Assets/FungusExample/Scripts/ViewsRoom.cs.meta

Loading…
Cancel
Save