Ejemplo n.º 1
0
 private void HandleMusic()
 {
     if (music == 0)
     {
         musicOff.ChangeToNegative();
     }
     else
     {
         musicOn.ChangeToNegative();
     }
 }
Ejemplo n.º 2
0
 private void HandleSound()
 {
     if (sound == 0)
     {
         soundOff.ChangeToNegative();
     }
     else
     {
         soundOn.ChangeToNegative();
     }
 }
Ejemplo n.º 3
0
 private void HandleLanguage()
 {
     if (language == 1)
     {
         rules.ChangeToNegative();
         english.ChangeToNormal();
         turkish.ChangeToNegative();
     }
     else
     {
         rules.ChangeToNormal();
         english.ChangeToNegative();
         turkish.ChangeToNormal();
     }
 }
Ejemplo n.º 4
0
 void GoNegative()
 {
     start.ChangeToNegative();
     how2play.ChangeToNegative();
     options.ChangeToNegative();
     wtfAreWe.ChangeToNegative();
     Camera.main.backgroundColor = Color.black;
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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);
     }
 }