예제 #1
0
        // 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;
        }
예제 #2
0
 public void Init()
 {
     if( popups == null ) {
         popups = new GameObject("OptionPopups").AddComponent<OptionPopups>();
     }
 }