Exemple #1
0
        public ConfigNumberRangedInt CreateNumberRangedInt(string name, int minvalue = 0, int maxvalue = 0)
        {
            ConfigNumberRangedInt n = new ConfigNumberRangedInt(name, minvalue, maxvalue);

            this.store.putVar(n);
            return(n);
        }
Exemple #2
0
        public GameObject GenerateSlider3(ConfigNumberRangedInt f)
        {
            GameObject n = Instantiate(prefabSlider3);

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

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