Old game Dr.Mario physics?

Hi everybody!
I’m start learning Unity. I’m tranning my skill with old game Dr.Mario, please help!

  1. How to know a block standing next to another block same color?
  2. How to Destroy 5 block same color standing coutinous in line (Horizontal, Vertial or both)
    Thank you!

Most likely you will want to keep an array that reflects how objects are placed on screen. It will be much simpler to go through the array and find which blocks are next to each other.

That mean an array[ ][ ] full play screen or only array[ ], PGJ. Do you have tutorial about this game, Thank!

Since it is C# it would probably be best with a array[,], but yeah, that was my thinking. I found this tutorial which looks good:
http://videogamedesign24.com/how-to-create-a-match-3-game-in-unity-tutorial/
It is for a match three game, but the principle is the same.

Thank you very much!