Exemplo n.º 1
0
        public void InitGame()
        {
            SetRandomValue();

            SetImage();

            ColorGameManager.GetInstance().colorData = randStringArr;
        }
Exemplo n.º 2
0
        private void OnTriggerEnter(Collider other)
        {
            if (!ColorGameManager.isClickDelay)
            {
                Debug.Log(other.gameObject.name);

                Debug.Log("DataColor : " + other.GetComponent <ColorData>().colorName);

                ColorGameManager.GetInstance().ColorDataCheck(other.GetComponent <ColorData>().colorName);

                gameObject.SetActive(false);
            }
        }
Exemplo n.º 3
0
        private IEnumerator CountDown()
        {
            while (!isEnd)
            {
                yield return(new WaitUntil(() => !ColorGameUIManager.isShowingText));

                yield return(new WaitForSeconds(1f));

                countNum          -= 1;
                countDownText.text = countNum.ToString();
                if (countNum == 0)
                {
                    isEnd = true;
                    ColorGameManager.GetInstance().GameOver();
                }
                else if (countNum % 10 == 0)
                {
                    arrowMove.ArrowSpeedUp();
                }
            }
        }