I’m working on video:
152. One Defender Per Square
My defender collider and core game area collider are both getting the mouse down event. I did everything Rick said. What’s going on! The core game area collider is behind the defenders on z-axis. I even moved the defenders well in front of everything else. I put in a print statement to console and can see both colliders get the mouse down event. The goal of this video was that the defender collider would get mouse down and the core game area collider would not… I am stuck. Any ideas?
Thanks in advance!
Core game area is transparent in the back. See Cactus defender in front:
I fixed it by using a dictionary. But I still want to know why this doesn’t work with colliders: