void Start() { TextMeshProUGUI display = GetComponent <TextMeshProUGUI>(); if (display) { display.text = "Tempo: " + PlaytimeData.GetPlayTime() + "\n" + "Estrelas: " + PlaytimeData.starsCount + "\n" + "Mortes: " + PlaytimeData.numberOfDeaths; } }
public void Call() { PlaytimeData.Reset(); ScreenTransition screenTransition = ScreenTransition.instance; if (screenTransition) { screenTransition.Call(scenePath); } else { ScreenTransition.LoadScene(scenePath); } }