I have overall 3 game objects in my game. Two bars and one sphere. Bar 1 is at x=-6 and y=-2 and bar2 at x=6 and y=2; I would like to follow bar 1 and as soon as my sphere leaves bar 1 I would like to switch off the light for some seconds. So that the player has to move the sphere on bar 2 without seeing anything (based on experience on what he saw).
Is this possible? I thing with a collider function?