2D game Shadow and Light

as you see in the picture my player is behind the door but still can see the next room
question is how can i make the next room invisible?

door will open automatically after player get close enough
Door.transform.Translate(0, -Speed * Time.deltaTime, 0)
after entering the next room the previous one Should be invisible .
can someone please help me with that?