IEnumerator StartRoom() { yield return(new WaitForSeconds(1.0f)); FindObjectOfType <Clock>().War_Sec_On(); if (gameObject.GetComponent <SpawnManager>()) { if (spawnValue > 0) { _MiniMap.AllOff(); GetComponent <SpawnManager>().SpawnMon(); //Status.CloseDoor(); } } while (!isClear) { yield return(null); if (!isClear) { if (GetComponent <SpawnManager>().monsterCount <= 0 && spawnValue <= 0) { SpawnItem(); _MiniMap.On(); GameManager.Instance.SoundManager.EffectPlay(GameManager.Instance.SoundManager.SYSTEMS.DOOR_OPEN); Status.OpenDoor(); FindObjectOfType <Clock>().War_Sec_Off(); FindObjectOfType <Clock>().Break = false; GameManager.Instance.LocalPlayer.ER_UP(GameManager.Instance.LocalPlayer.LittleDoll); isClear = true; } GetComponent <SpawnManager>().CurseBirdTime(); } } }