void Start() { if (Globel.stage == 1) { transform.GetChild(0).GetChild(1).gameObject.SetActive(false); } else { transform.GetChild(0).GetChild(1).gameObject.SetActive(true); } BGMManager.PlayUnbattle(); }
// Update is called once per frame void Update() { if (Globel.killN >= 6 && !doorUnlock) { //Debug.Log("check"); roomParent.GetComponent <DoorCreat>().clear = true; roomParent.GetComponent <DoorCreat>().openDoor(); Globel.killN = 0; enemyIn = false; doorUnlock = true; } if (Globel.killN >= 1 && !doorUnlock && bossIn) { //Debug.Log("check"); BGMManager.PlayUnbattle(); roomParent.GetComponent <DoorCreat>().clear = true; roomParent.GetComponent <DoorCreat>().openDoor(); Globel.killN = 0; enemyIn = false; doorUnlock = true; } }