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