public void SetHardcore(bool on = true) { if (IsHardcore != on) { ToggleSwitch hardcoreToggle = FreeplayDevice.HardcoreToggle; SelectObject(hardcoreToggle.GetComponent <Selectable>()); } }
public void SetNeedy(bool on = true) { if (HasNeedy != on) { ToggleSwitch needyToggle = FreeplayDevice.NeedyToggle; SelectObject(needyToggle.GetComponent <Selectable>()); } }
public void SetModsOnly(bool on = true) { FreeplaySettings currentSettings = FreeplayDevice.CurrentSettings; bool onlyMods = currentSettings.OnlyMods; if (onlyMods != on) { ToggleSwitch modsToggle = FreeplayDevice.ModsOnly; SelectObject(modsToggle.GetComponent <Selectable>()); } }