Question by
neznamnija · May 31, 2017 at 08:31 AM ·
objectdestroygridmatrixgrid based game
Destroying an object in a matrix
So basically, I have a grid 11x11 that is filled completely with an object of type prefab_1.
I have written the code to retrieve the exact coordinates of the position in the matrix (the grid) where I wan't to destroy the object. How do I actually destroy the specific object, not all of them? What's the smartest solution?
I'm writing in C#
Comment
Your answer
Follow this Question
Related Questions
Unity2D: How to destroy spawned object once it exit out of camera's view? 1 Answer
(3d) Destroy a GameObject when player walks over it 1 Answer
Is ther a way to base movement translation through the grid map of the tilemap? 1 Answer
Get adjacent objects (tiles) using Colliders? 0 Answers
Grid territory system 0 Answers