예제 #1
0
 void HandleRunEvent(RunPhase phase, float time)
 {
     if (phase == RunPhase.Start)
     {
         startTime = time;
     }
     else if (phase == RunPhase.Goal)
     {
         endTime = time;
         float score = this.score;
         if (GeneralManager.HasBirdRunRecord())
         {
             uiRecords.ShowBirdRunnerResult(score, GeneralManager.GetBirdRunRecord());
         }
         else
         {
             uiRecords.ShowBirdRunnerResult(score);
         }
         if (GeneralManager.IsPersonalBirdRunRecord(score))
         {
             GeneralManager.SetBirdRunRecord(score);
         }
         GeneralManager.RecentRunBirdingXRunning = score;
     }
 }