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.
|
|
|
using UnityEngine;
|
|
|
|
using System.Collections;
|
|
|
|
using Fungus;
|
|
|
|
|
|
|
|
public class SequenceTestRoom : Room
|
|
|
|
{
|
|
|
|
public FungusScript fungusScript;
|
|
|
|
|
|
|
|
void OnEnter()
|
|
|
|
{
|
|
|
|
fungusScript.Execute();
|
|
|
|
|
|
|
|
/*
|
|
|
|
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();
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
}
|