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(); }
public override void Unload() { ChoicePrompt.Unload(); }
public override void Load() { ChoicePrompt.Load(); }