- Home /
Match 3 game getting the colour of the match
so i'm making a match 3 game for a uni project, and I want there to be different things happening in the game depending on what the colour of the match is, the closest I've managed to get is a tutorial on creating a colour bomb, which basically gets the tag of the tile it is being matched with, and sets all other tiles with that tag to matched, which destroys them However, how may I tweak this code so that regular tiles return the tag of the tile they are being matched with? eg, tile tag = red. Then I can do a check saying if that tile tag is red then do the event that i want. If you know how to tweak this to what i want or if you have better code then please show me, I've been stumped on this issue for days now
Answer by logicandchaos · Jul 05, 2020 at 06:51 PM
I wrap a color in a scriptable object creating a scriptable color class ScriptableColor : ScriptableObject { public Color value; }