Esempio n. 1
0
        public static IEnumerator Prompt(params string[] options)
        {
            var obj = new ChoicePrompt();

            Engine.Scene.Add(obj);
            foreach (var opt in options)
            {
                obj.Add(new Option(opt));
            }

            Audio.Play("event:/ui/game/chatoptions_appear");
            while (obj.Alive)
            {
                yield return(null);
            }

            Choice = obj.Index;
            obj.RemoveSelf();
        }
Esempio n. 2
0
 public override void Unload()
 {
     ChoicePrompt.Unload();
 }
Esempio n. 3
0
 public override void Load()
 {
     ChoicePrompt.Load();
 }