Esempio n. 1
0
 public void OnPress()
 {
     SEManager.PlaySubmitSound();
     //SingleMission
     if (MainGameController.gameNumber == 1)
     {
         /*SingleMissionStaticData.enemyIsDeath = new bool[1];
          * SingleMissionStaticData.remainEnemyNum = 1;
          * SingleMissionStaticData.loadNewStage = false;*/
         SceneManager.LoadScene("SingleMission0");
     }
     else if (MainGameController.gameNumber == 2) //survival
     {
         SceneManager.LoadScene("SurvivalStage1");
     }
 }
Esempio n. 2
0
 public void OnPress()
 {
     if (ptp.GetTankNumber() >= 21)
     {
         //戦車がまだ解放されていなかったら選べない
         if (PlayerPrefs.GetInt("UseableTank" + ptp.GetTankNumber(), 0) != 1)
         {
             SEManager.PlaySound(SEManager.cannotSound);
             return;
         }
     }
     SEManager.PlaySubmitSound();
     if (MainGameController.gameNumber == 1)
     {
         SingleMissionStaticData.selectTankNumber = ptp.GetTankNumber();
         SingleMissionStaticData.playerLife       = ptp.GetLifeNum();
     }
     else if (MainGameController.gameNumber == 2)
     {
         SingleSurvivalStaticData.selectTankNumber = ptp.GetTankNumber();
     }
     psui.SetSelectTankNum(ptp.GetTankNumber());
     psui.PressTankButton();
 }
Esempio n. 3
0
 public void OnPress()
 {
     SEManager.PlaySubmitSound();
     psui.PressCancelButton();
 }
Esempio n. 4
0
 public void OnOnePlayButtonClicked()
 {
     SEManager.PlaySubmitSound();
     SceneManager.LoadScene("PlayerSelectTank");
 }
Esempio n. 5
0
 public void PlaySubmitButtonSound()
 {
     SEManager.PlaySubmitSound();
 }