예제 #1
0
        public void ChangeSize(int change)
        {
            if (sizeButtonPos && sizeButtonNeg)
            {
                List <TargetSize> sizeList;
                sizeList = Enum.GetValues(typeof(TargetSize)).Cast <TargetSize>().ToList();

                targetSize = sizeList[(int)Mathf.Repeat(sizeList.IndexOf(targetSize) + change, sizeList.Count)];
                sizeText.GetComponent <TextMeshProUGUI>().text = targetSize.ToString();
            }
        }
예제 #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();
        }