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); } }
// Update is called once per frame void Update() { score = ScoreManaging.GetScore(); scoreText.text = score.ToString(); }
// Start is called before the first frame update void Start() { score = ScoreManaging.GetScore(); scoreText.text = score.ToString(); }