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