using UnityEngine; using UnityEngine.UI; using UnityEngine.Events; using System; using System.Collections; using System.Collections.Generic; namespace Fungus.Script { [ExecuteInEditMode] public class ChooseDialog : Dialog { public Slider slider; public class Option { public string text; public UnityAction onSelect; } public List optionButtons = new List(); static public List activeDialogs = new List(); void OnEnable() { if (!activeDialogs.Contains(this)) { activeDialogs.Add(this); } } void OnDisable() { activeDialogs.Remove(this); } public void Choose(string text, List