void EndScene() { if (currentLevel == lastLevel) { SharedState.GameComplete(); } transition.DisplayTransitionAndGotoNextScene(); }
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(); }