Exemplo n.º 1
0
 public void SignalEndOfTalk()
 {
     if (endGame)
     {
         int score = Mathf.RoundToInt(ingredientTracker.CalculatePercentageDone() * 8);
         if (bombManager != null && score == 8)
         {
             if (bombManager.GetFuture() > 5)
             {
                 score++;
             }
             if (bombManager.GetPast() > 5)
             {
                 score++;
             }
         }
         PlayerPrefs.SetInt("Score", score);
         GetComponent <SceneLoader>().LoadScene("Master_End_Scene");
     }
     playerMovement.ReleaseFreeze();
 }