Beispiel #1
0
 void SetClapProperties(bool value, GameSettings.ClapToggle setting)
 {
     if (value)
     {
         GameSettings.clapProperties |= setting;
     }
     else
     {
         GameSettings.clapProperties &= ~setting;
     }
 }
Beispiel #2
0
 void initClapToggle(Toggle toggle, GameSettings.ClapToggle setting)
 {
     if ((GameSettings.clapProperties & setting) != 0)
     {
         toggle.isOn = true;
     }
     else
     {
         toggle.isOn = false;
     }
 }
Beispiel #3
0
 void SetClapSetting(GameSettings.ClapToggle setting, bool value)
 {
     if (value)
     {
         Globals.gameSettings.clapProperties |= setting;
     }
     else
     {
         Globals.gameSettings.clapProperties &= ~setting;
     }
 }
Beispiel #4
0
 void InitClapToggle(Toggle toggle, GameSettings.ClapToggle setting)
 {
     toggle.isOn = (GameSettings.clapProperties & setting) != 0;
 }