void OnTriggerEnter2D(Collider2D col) { if (col.gameObject.tag == "Player") { hRoomTrigger = true; } }