public void SubmitInput()
 {
     if (gameObject.activeInHierarchy && !playerReady)
     {
         audioSrc.PlayOneShot(selectSFX);
         playerReady = true;
         afterMatchUI.UpdateSelected(true);
         screensTransitionManager.ReadyPlayer(true);
     }
     else
     {
         audioSrc.PlayOneShot(errorSFX);
     }
 }
 public void SubmitInput(InputAction.CallbackContext context)
 {
     if (gameObject.activeInHierarchy && context.performed)
     {
         // buy 1 secondary potion
         if (selectionIndex == 0)
         {
             int secondaryCost = 20;
             if (weets - secondaryCost >= 0) // check enough money
             {
                 audioSrc.PlayOneShot(incrementPotionSFX);
                 secondaryQty += 1;
                 weets        -= secondaryCost;
                 brewingPhaseUI.UpdateSecondaryQty(secondaryQty, weets);
             }
             else
             {
                 audioSrc.PlayOneShot(errorSFX);
             }
         }
         // buy 1 special potion
         else if (selectionIndex == 1)
         {
             int specialCost = brewingPhaseManager.GetSpecialPotion(specialIndex).Cost;
             //int numSpecialPotions = brewingPhaseManager.NumSpecialPotions();
             if (weets - specialCost >= 0) // check enough money
             {
                 audioSrc.PlayOneShot(incrementPotionSFX);
                 specialQty += 1;
                 weets      -= specialCost;
                 brewingPhaseUI.UpdateSpecialQty(specialQty, weets);
             }
             else
             {
                 audioSrc.PlayOneShot(errorSFX);
             }
         }
         // confirm button
         else if (selectionIndex == 2)
         {
             audioSrc.PlayOneShot(selectSFX);
             selectionIndex = 3;
             playerStats.UpdateBrew(weets, secondaryQty, specialQty, brewingPhaseManager.GetSpecialPotion(specialIndex));
             brewingPhaseUI.UpdateSelected(true);
             screensTransitionManager.ReadyPlayer(true);
         }
     }
 }
 public void SelectInput()
 {
     if (gameObject.activeInHierarchy && !playerReady)
     {
         // if character not taken
         if (characterSelectManager.SelectCharacter(characterIndex))
         {
             audioSrc.PlayOneShot(selectSFX);
             playerReady = true;
             playerStats.CharacterData = characterSelectManager.GetCharacter(characterIndex);
             characterSelectUI.UpdateSelected(true);
             playerStats.ResetGame();
             // attach char here
             playerScript.AttachCharacter((CharacterType)characterIndex);
             screensTransitionManager.ReadyPlayer(true);
         }
         else
         {
             audioSrc.PlayOneShot(errorSFX);
         }
     }
 }
 public void UpdateReady()
 {
     isReady = !isReady;
     podiumOverlayUI.UpdateReady(isReady);
     screensTransitionManager.ReadyPlayer(isReady);
 }