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