예제 #1
0
 private void Awake()
 {
     Time.timeScale   = 1;
     Cursor.lockState = CursorLockMode.Locked;
     Cursor.visible   = false;
     LetterIndex      = 0;
     for (int i = 0; i < Letters.Length; i++)
     {
         Letters[i].text = ((char)currentLetter).ToString();
     }
     MusicPlayer.Instance.Stop();
     if (ScoreManaging.GetScore() < ScoreManaging.GetLowestHighscore())
     {
         medals.gameObject.SetActive(true);
         gameObject.SetActive(false);
     }
 }
예제 #2
0
 // Update is called once per frame
 void Update()
 {
     score          = ScoreManaging.GetScore();
     scoreText.text = score.ToString();
 }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     score          = ScoreManaging.GetScore();
     scoreText.text = score.ToString();
 }