public void TurnOff(button_handler button)
 {
     PlayerPrefs.SetInt("Sound", 1);
     PlayerPrefs.Save();
     b_soundOff.gameObject.SetActive(false);
     b_soundOn.gameObject.SetActive(true);
     AudioListener.volume = 0;
 }
 private void Bet(button_handler button)
 {
     player_controller.instance.bet++;
     if (player_controller.instance.bet == SlotSettings.BetsList.Count)
     {
         player_controller.instance.bet = 0;
     }
     SoftCount.instance.Soft(SlotSettings.BetsList[player_controller.instance.bet], player_controller.instance.BetText, "$", "");
 }
 private void Spin(button_handler button)
 {
     if (canPlay)
     {
         if (player_controller.instance.Reduce(crypt.data.Encrypt("" + SlotSettings.BetsList[player_controller.instance.bet])))
         {
             reelAudio.clip = SpinSound;
             reelAudio.loop = true;
             reelAudio.Play();
             CurrentSpin = GetSpinData();
             for (int x = 0; x < SlotReels.Count; x++)
             {
                 SlotReels[x].WantedSpeed = SlotSettings.SpinSpeed;
             }
             canPlay   = false;
             isRun     = true;
             SpinTimer = 0;
         }
     }
 }
 private void Exit(button_handler button)
 {
     Application.Quit();
 }
 private void OpenGame(button_handler button)
 {
     WelcomeScreen.SetActive(false);
     GameScreen.SetActive(true);
 }
 private void Close(button_handler button)
 {
     PaytableObject.SetActive(false);
 }
 private void Open(button_handler button)
 {
     game_controller.instance.UpdateSettings();
     UpdatePaytable();
     PaytableObject.SetActive(true);
 }