示例#1
0
 public void setConfigVar(ConfigBoolean boolean)
 {
     this.boolean = boolean;
     this.boolean.onValueChanged += () => {
         this.toggle.isOn = this.boolean.value;
     };
 }
示例#2
0
        public ConfigBoolean CreateBoolean(string name, bool value = false)
        {
            ConfigBoolean v = new ConfigBoolean(name, value);

            this.store.putVar(v);
            return(v);
        }
示例#3
0
        public GameObject GenerateBoolean(ConfigBoolean b)
        {
            GameObject n = Instantiate(prefabBoolean);

            n.transform.SetParent(this.varUIContainer, false);
            UIBoolean ui = n.GetComponent <UIBoolean>();

            ui.setConfigVar(b);
            n.SetActive(true);
            return(n);
        }