예제 #1
0
 public void OnSound()
 {
     SCR_Profile.ToggleSound();
     RefreshSoundButtonStatus();
     RefreshSoundStatus();
     SCR_Audio.PlayClickSound();
 }
예제 #2
0
 public void OnPlay()
 {
     // Load latest level
     SCR_Profile.SelectBoss(bossSelecting);
     SCR_Audio.PlayClickSound();
     SceneManager.LoadScene("GSGameplay/SCN_Gameplay");
 }
예제 #3
0
 public void OnCheatMoney()
 {
     SCR_Profile.CheatMoney();
     SCR_Audio.PlayClickSound();
     UpdateMoneyNumber();
     UpdateBoss();
 }
예제 #4
0
 public void OnReset()
 {
     SCR_Profile.ResetProfile();
     SCR_Audio.PlayClickSound();
     UpdateMoneyNumber();
     UpdateBoss();
 }
예제 #5
0
    public void OnMainMenu()
    {
        if (imgNotice.activeSelf)
        {
            SCR_Profile.SelectBoss(shouldSelect);
            SCR_Profile.bosses[shouldSelect].recommended = 1;
            SCR_Profile.SaveProfile();
        }

        SCR_Audio.PlayClickSound();
        SceneManager.LoadScene("GSMenu/SCN_Menu");
    }
예제 #6
0
 public void OnPrev()
 {
     if (!scrScroll.tweening)
     {
         bossSelecting--;
         if (bossSelecting < 0)
         {
             bossSelecting = SCR_Profile.bosses.Length - 1;
         }
         UpdateBoss();
         SCR_Audio.PlayClickSound();
         scrScroll.ForceSnapProfileIndex(bossSelecting);
     }
 }
예제 #7
0
 public void OnNext()
 {
     if (!scrScroll.tweening)
     {
         bossSelecting++;
         if (bossSelecting >= SCR_Profile.bosses.Length)
         {
             bossSelecting = 0;
         }
         UpdateBoss();
         SCR_Audio.PlayClickSound();
         scrScroll.ForceSnapProfileIndex(bossSelecting);
     }
 }
예제 #8
0
 public void OnReplay()
 {
     SCR_RunSound.Stop();
     SCR_Audio.PlayClickSound();
     SceneManager.LoadScene("GSGameplay/SCN_Gameplay");
 }