void OnTriggerStay2D(Collider2D other) { if (other.tag == "room" && !m_CurrentRoom && other.isTrigger) { m_CurrentRoom = other; other.transform.GetChild(0).gameObject.SetActive(true); if (other.gameObject.GetComponent <BossRoomController>()) { GameObject theme = GameObject.FindGameObjectWithTag("theme"); if (theme) { ThemeController control = theme.GetComponent <ThemeController>(); if (control) { control.ChangeBossTheme(); } } other.gameObject.GetComponent <BossRoomController>().m_isStart = true; m_isDisableInput = true; } m_CamControl.SetLimit(); m_CamControl.m_isChange = true; m_CamControl.m_isFindPos = false; } if (other.tag == "loc" && !m_currentLoc && !m_IsLay) { m_currentLoc = other.gameObject; m_oldPosCurrentLoc = m_currentLoc.transform.position; HoldEnter(); float y = m_R2D.velocity.y; y = (y > 0) ? y : 0; m_R2D.velocity = new Vector2(0, y); } }