Beispiel #1
0
 public void SetHardcore(bool on = true)
 {
     if (IsHardcore != on)
     {
         ToggleSwitch hardcoreToggle = FreeplayDevice.HardcoreToggle;
         SelectObject(hardcoreToggle.GetComponent <Selectable>());
     }
 }
Beispiel #2
0
 public void SetNeedy(bool on = true)
 {
     if (HasNeedy != on)
     {
         ToggleSwitch needyToggle = FreeplayDevice.NeedyToggle;
         SelectObject(needyToggle.GetComponent <Selectable>());
     }
 }
Beispiel #3
0
    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>());
        }
    }