Need to activate object only if condition is met

What is happening now is that the object is not seen in the game view, however the player can still walk across midplatform. I’m not sure why. Attached is the screenshot.

the collider is still there, if you turn off the renderer you won’t see the object but the collider will still work.