// Use this for initialization void Start() { ingameQuitMenu.SetActive(false); healthText = GameObject.Find("healthText").GetComponent <UnityEngine.UI.Text>(); playerName = SetName.getCharacterName(); isPaused = false; }
public void levelEnd() { trapdoorSound.Play(); Scoreboard.writeToScoreboard(SetName.getCharacterName(), Player.currentScore); Invoke("loadHighScoreScene", 1.5f); }