So I found a solution which is probably not the best but it works...
It consist on adding the "using System.Linq;" library and do a bunch of List.FindAll for each of my tiles to look if the same gameobject exist and if it does, I store it into another gameobject list...
As I said there's probably better way to do it and if someone knows one, I'll be very grateful !
↧