Good afternoon, I'm doing an exercise where I have a "beam" created with Line Renderer and I want the block to change color when the beam touches a block. As shown in the picture the lightning comes out of the red block, but I want the white block to change. Thanks
The code I am using is the one that appears in the second image, but what it does is change the color of the cube with "eye" and not the white cube