示例#1
0
 private void HandleMusic()
 {
     if (music == 0)
     {
         musicOff.ChangeToNegative();
     }
     else
     {
         musicOn.ChangeToNegative();
     }
 }
示例#2
0
 private void HandleSound()
 {
     if (sound == 0)
     {
         soundOff.ChangeToNegative();
     }
     else
     {
         soundOn.ChangeToNegative();
     }
 }
示例#3
0
 private void HandleLanguage()
 {
     if (language == 1)
     {
         rules.ChangeToNegative();
         english.ChangeToNormal();
         turkish.ChangeToNegative();
     }
     else
     {
         rules.ChangeToNormal();
         english.ChangeToNegative();
         turkish.ChangeToNormal();
     }
 }
示例#4
0
 void GoNegative()
 {
     start.ChangeToNegative();
     how2play.ChangeToNegative();
     options.ChangeToNegative();
     wtfAreWe.ChangeToNegative();
     Camera.main.backgroundColor = Color.black;
 }
示例#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();
     }
 }
示例#6
0
文件: UIHandler.cs 项目: OFGONEN/619
 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);
     }
 }