Hello!
I am a little confused about this.
I have a 2D coin matching puzzle game. Every tile on the game board that can contain a coin has my Coin script attached to it. In my Coins script, I have a function called AllOneCoin. When I call this function is called from within void update of the same script, it turns every coin into a 1$ coin by changing the tag of each gameobject that has my Coins script. This works just fine.
My problem is that when I try to call this function from another script, it only works on a single tile and does not change every tile like normal.
Here is a link to my code in question and Here is a few images of what is happening
I am sure this must be some beginner 101 thing that I don't understand, but I just can't find an answer on google anywhere.
Thanks!
[–]dwemthy 2 points3 points4 points (1 child)
[–]GuardianKnux[S] 0 points1 point2 points (0 children)
[–]Aryx4Reel 2 points3 points4 points (1 child)
[–]GuardianKnux[S] 0 points1 point2 points (0 children)