Ejemplo n.º 1
0
        public void ChangeDifficulty(int change)
        {
            if (difficultyButtonPos && difficultyButtonNeg)
            {
                List <Difficulty> difficultyList;
                difficultyList = Enum.GetValues(typeof(Difficulty)).Cast <Difficulty>().ToList();

                difficulty = difficultyList[(int)Mathf.Repeat(difficultyList.IndexOf(difficulty) + change, difficultyList.Count)];
                difficultyText.GetComponent <TextMeshProUGUI>().text = difficulty.ToString();
            }
        }
Ejemplo n.º 2
0
        private void ButtonSetup()
        {
            difficulty = Difficulty.Medium;
            difficultyText.GetComponent <TextMeshProUGUI>().text = difficulty.ToString();

            targetSize = TargetSize.Medium;
            sizeText.GetComponent <TextMeshProUGUI>().text = targetSize.ToString();

            duration = Duration.Normal;
            durationText.GetComponent <TextMeshProUGUI>().text = duration.ToString();
        }