예제 #1
0
 private void ScoreBoard_GameOver(ScoreBoard.WhatOver over)
 {
     GameInProgress = false;
     MessageSystem.HideAllButtons();
     MessageSystem.HideAllWindows();
     EventsManager.EndAllEvents();
     ForceTeleportScript.ForceTeleportToGameSummary();
     if (over == ScoreBoard.WhatOver.TopPointsTime)
     {
         MessageSystem.ShowCustomText("Congratulations!\n\nYou are in Top 5!", MessageSystem.Window.W800H400);
         StartCoroutine(Hide(7, MessageSystem.Window.W800H400));
     }
     if (over == ScoreBoard.WhatOver.TopPointsEvents)
     {
         MessageSystem.ShowCustomText("Congratulations!\n\nYou have done all the events!\n\nYou are in Top 5!", MessageSystem.Window.W800H400);
         StartCoroutine(Hide(7, MessageSystem.Window.W800H400));
     }
     if (over == ScoreBoard.WhatOver.Events)
     {
         MessageSystem.ShowCustomText("Congratulations!\n\nYou have done all the events!", MessageSystem.Window.W800H400);
         StartCoroutine(Hide(7, MessageSystem.Window.W800H400));
     }
     if (over == ScoreBoard.WhatOver.Time)
     {
         MessageSystem.ShowCustomText("End of Time!\n\nTry again to beat your record!", MessageSystem.Window.W800H400);
         StartCoroutine(Hide(7, MessageSystem.Window.W800H400));
     }
     DataHolder.SaveData();
 }