Question by
TrixxaPony · Sep 16, 2018 at 01:09 PM ·
scripting problem2d gamelayersgameobjectslayermask
Identifying 3 GameObjects in contact with each other,Identifying and destroying 3 Game Objects with the same LayerName
I was creating a 2-D colored balls stacking game and was wondering what is the best way to Identify 3 balls of the same color stacked on top of each other.
The idea is to then destroy all the balls with that color currently present in the game (including the identified three). Kind of like Bejeweled, except I am not using an Array List.
Thanks in advance!
Comment
Your answer
Follow this Question
Related Questions
Handle order in layer in 2D game ? 2 Answers
How to Ignore Collisions Between a Layer and a LayerMask? 1 Answer
2D: Erase a part of top layer to see the background 0 Answers
Attaching Light lerp to in-game clock 1 Answer
No overload for method. 1 Answer