my logic lets you drag and place canons on different grid squares and merge when 2 of the same kind are close when you let go of dragging, however after i spawn the second prefab of the canon, they drag fine but both lose the ability to snap to a new square but they can still merge, but also cant snap to new cells after merging. ive looked through all the code, there is no logic that says after there are 2 cannons, that anything should stop working. It spawns enemies after 2 but i tried with that commented out as well. The canon limit was 2 and i checked without the limit and it still does the same thing, stops snapping after 2.
a powerful website for storing and sharing text and code snippets. completely free and open source.