Exemplo n.º 1
0
 public void SetSwitch(string switchName)
 {
     if (!Switches.Exists(sw => sw.name.Equals(switchName)))
     {
         Switches.Add(SOSwitch.Load(switchName));
     }
 }
Exemplo n.º 2
0
 public void SetSwitch(SOSwitch sw)
 {
     if (!Switches.Contains(sw))
     {
         Switches.Add(sw);
     }
 }
Exemplo n.º 3
0
 public void ClearSwitch(SOSwitch sw)
 {
     Switches.Remove(sw);
 }
Exemplo n.º 4
0
 public bool IsSwitchSet(SOSwitch sw)
 {
     return(Switches.Contains(sw));
 }