// Helpers public List<OptionPopups.ConfigOption> SetupOptions(object selected, OptionPopups.ConfigOption[] options) { List<OptionPopups.ConfigOption> list = new List<OptionPopups.ConfigOption>(); foreach( OptionPopups.ConfigOption option in options ) { option.enabled = option.key.Equals(selected); list.Add(option); } return list; }
public void Init() { if( popups == null ) { popups = new GameObject("OptionPopups").AddComponent<OptionPopups>(); } }