예제 #1
0
        public IEnumerator coShow(tubeColor tColor)
        {
            string c = tColor.ToString().ToLower();

            GameObject t = tubes.Find(x => { return(x.gameObject.name.ToLower().Contains(c)); });

            t.SetActive(true);
            transform.DOMoveY(5.18f, 0.5f);

            yield return(new WaitForSeconds(1));

            transform.DOMoveY(9.64f, 0.5f).OnComplete(() => {
                t.SetActive(false);
            });
        }
예제 #2
0
 public void show(tubeColor tColor)
 {
     StartCoroutine(coShow(tColor));
 }