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
668 B
38 lines
668 B
using UnityEngine; |
|
using System.Collections; |
|
using Fungus; |
|
using Fungus.Script; |
|
|
|
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(); |
|
*/ |
|
} |
|
}
|
|
|