using UnityEngine; using System.Collections; using Fungus; public class SequenceTestRoom : Room { public FungusScript fungusScript; void OnEnter() { fungusScript.Execute(); /* Sequence s = GetComponent(); 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(); s.Clear(); s.Add(new Say("You have clicked")); s.Execute(); */ } }