Esempio n. 1
0
 void EndScene()
 {
     if (currentLevel == lastLevel)
     {
         SharedState.GameComplete();
     }
     transition.DisplayTransitionAndGotoNextScene();
 }
Esempio n. 2
0
 void Start()
 {
     if (SharedState.LanguageDefs != null)
     {
         txt.text = SharedState.LanguageDefs["game_over_text"];
     }
     else
     {
         txt.text = "Lorem epsum...";
     }
     txt.text += " \n" + "$" + SharedState.Money;
     SharedState.GameComplete();
 }