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.

38 lines
706 B

using UnityEngine;
using System.Collections;
using Fungus;
public class SequenceTestRoom : Room
{
public SequenceController sequenceController;
void OnEnter()
{
sequenceController.ExecuteSequence(sequenceController.activeSequence);
/*
Sequence s = GetComponent<Sequence>();
s.Add(new Say("New sequencer 1"));
s.Add(new AddOption("Button 1", Clicked));
//s.Add(new AddOption("Button 2", Clicked));
//s.Add(new AddOption("Button 3", Clicked));
s.Add(new Say("New sequencer 2"));
s.Add(new Say("New sequencer 3"));
s.Execute();
*/
}
void Clicked()
{
/*
Sequence s = GetComponent<Sequence>();
s.Clear();
s.Add(new Say("You have clicked"));
s.Execute();
*/
}
}