public void UnlockTheme(ThemeManager.Skin theme) { if (!unlockedThemes.Any(x => x == theme)) { unlockedThemes.Add(theme); } ThemeManager.SetSkin(theme); }
public Settings() { backgroundSpeed = 15F; chargeOnLeftSide = true; fxVolume = 1F; musicVolume = 0.2F; skin = ThemeManager.Skin.unset; imageEffects = true; }
public Unlocks() { defaultSkin = ThemeManager.Skin.sunset; currentSkin = ThemeManager.Skin.sunset; inventory = new Inventory(); unlockedThemes = new List <ThemeManager.Skin>(); unlockedThemes.Add(defaultSkin); productInfos = new List <ProductInfo>(); productInfos.Add(new ProductInfo(1, true, true, UIProduct.BuyType.nonConsumable)); }
public void ToogleChanged(Toggle t) { if (t.isOn) { // set all other toggles to off foreach (Toggle tog in toggles) { if (tog != t) { tog.isOn = false; } } ThemeManager.Skin skin = t.GetComponent <HorizonToggle>().skin; ThemeManager.SetSkin(skin); } if (!t.isOn) { foreach (Toggle tog in toggles) { if (tog != t) { tog.isOn = false; } } int offCounter = 0; for (int i = 0; i < toggles.Length; i++) { if (!toggles[i].isOn) { offCounter++; } if (offCounter == toggles.Length) { t.isOn = true; } } } }
public void SwitchTheme(ThemeManager.Skin theme) { ThemeManager.SetSkin(theme); }