예제 #1
0
 private void HandleShowResult(ShowResult result)
 {
     if (result == ShowResult.Finished)
     {
         PrefsDriver.AddPower();
         GeneralLogic.StartSimulationEvent();
     }
     else
     if (result == ShowResult.Failed)
     {
         SceneManager.LoadScene(1);
     }
 }
예제 #2
0
 private void PlayPressed(int power)
 {
     isPlayMode = true;
     if (power > 0)
     {
         GeneralLogic.StartSimulationEvent();
     }
     else
     if (PrefsDriver.IsPackGroupUnlocked(3))
     {
         ShowAd();
     }
     else
     {
         PrefsDriver.AddPower(3);
         GeneralLogic.StartSimulationEvent();
     }
 }