예제 #1
0
 private void ShowNextUI()
 {
     stepsCount++;
     currentLevelScore = GameManager.Instance.GetCurrentLevelScore();
     if (stepsCount == 1)
     {
         LabelsColumnText.text = Environment.NewLine + "Shots";
         ParColumnText.text    = "Par" + Environment.NewLine + currentLevelScore.ParShots;
     }
     else if (stepsCount == 2)
     {
         ActualColumnText.text = "Actual" + Environment.NewLine + currentLevelScore.Shots;
     }
     else if (stepsCount == 3)
     {
         LabelsColumnText.text = LabelsColumnText.text + Environment.NewLine + "Time";
         ParColumnText.text    = ParColumnText.text + Environment.NewLine + SecondsToString(currentLevelScore.ParSecondsTaken);
     }
     else if (stepsCount == 4)
     {
         ActualColumnText.text = ActualColumnText.text + Environment.NewLine + SecondsToString(currentLevelScore.SecondsTaken);
     }
     else if (stepsCount == 5)
     {
         LabelsColumnText.text = LabelsColumnText.text + Environment.NewLine + "Rank";
     }
     else if (stepsCount == 6)
     {
         ActualColumnText.text = ActualColumnText.text + Environment.NewLine + currentLevelScore.GetRank();
     }
     else if (stepsCount == 7)
     {
         QuoteText.text     = currentLevelScore.GetQuote();
         QuoteImage.enabled = true;
         Panel.enabled      = true;
     }
     else if (stepsCount == 10)
     {
         GameManager.Instance.GoToNextLevel();
     }
 }