public void EndGame(endState result)
 {
     if (result == endState.win)
     {
         SceneManager.LoadScene("Win");
     }
     else
     {
         if (result == endState.lossTime)
         {
             SceneManager.LoadScene("LossTime");
         }
         else
         {
             SceneManager.LoadScene("LossCrash");
         }
     }
 }
示例#2
0
 return WaitUntil(maxWaitSeconds, secondsPerIter, endState, isState, doFailure, attemptCount);