Exemple #1
0
 private void HandleMusic()
 {
     if (music == 0)
     {
         musicOff.ChangeToNegative();
     }
     else
     {
         musicOn.ChangeToNegative();
     }
 }
Exemple #2
0
 private void HandleSound()
 {
     if (sound == 0)
     {
         soundOff.ChangeToNegative();
     }
     else
     {
         soundOn.ChangeToNegative();
     }
 }
Exemple #3
0
 private void HandleLanguage()
 {
     if (language == 1)
     {
         rules.ChangeToNegative();
         english.ChangeToNormal();
         turkish.ChangeToNegative();
     }
     else
     {
         rules.ChangeToNormal();
         english.ChangeToNegative();
         turkish.ChangeToNormal();
     }
 }
Exemple #4
0
 void GoNegative()
 {
     start.ChangeToNegative();
     how2play.ChangeToNegative();
     options.ChangeToNegative();
     wtfAreWe.ChangeToNegative();
     Camera.main.backgroundColor = Color.black;
 }
Exemple #5
0
 private void HandleTableSize()
 {
     if (tableSize == 0)
     {
         sizeMin.ChangeToNegative();
     }
     else if (tableSize == 1)
     {
         sizeSmall.ChangeToNegative();
     }
     else if (tableSize == 2)
     {
         sizeMedium.ChangeToNegative();
     }
     else
     {
         sizeBig.ChangeToNegative();
     }
 }
Exemple #6
0
 void ToggleOptionBar(bool open)
 {
     if (open)
     {
         bar_option.ChangeToNegative();
         button_option.gameObject.SetActive(true);
         text_option.gameObject.SetActive(true);
         text_player_name.gameObject.SetActive(false);
     }
     else
     {
         bar_option.ChangeToNormal();
         button_option.gameObject.SetActive(false);
         text_option.gameObject.SetActive(false);
         text_player_name.gameObject.SetActive(true);
     }
 }