So im making a system similar to redstone, I have a class for a redstone dust node, however I need a system of detecting whether a redstone dust has been placed next to another. I initially considered colliders to check whether a piece of dust has been placed next to another. This seems cumbersome and doesnt allow me to check which size the dust has been placed on. Is there a better way of managing logical connections like this?
If you are using a Tiled world (like minecraft) when placing a redstone, just need to chesk the surrunding tiles (you know its coords).
If is not a tiled map, the best option is a collider.
Once you detect if the new redstone is next to another redstone, you only need to access this old redstone alo.