//스테이지를 바꾸는 연출.. void UpdateGameChanging() { //초밥 페이드 아웃 시작. GameObject[] blocks = GameObject.FindGameObjectsWithTag("Block"); foreach (GameObject obj in blocks) { BlockScript b = obj.GetComponent <BlockScript>(); b.FadeOut(); } //탄환 소거. GameObject[] balls = GameObject.FindGameObjectsWithTag("Ball"); foreach (GameObject obj in balls) { Destroy(obj); } //발사할 수 없게 합니다. GameObject[] bars = GameObject.FindGameObjectsWithTag("Bar"); foreach (GameObject obj in bars) { BarScript bar = obj.GetComponent <BarScript>(); bar.SetShotEnable(false); //발사 기능 OFF. } //다음 상태로 전환. m_state = State.GameOut; }