Answer the question
In order to leave comments, you need to log in
How to destroy an object by coordinates (or the desired clone)?
I have a grid with x and y coordinates and an object name
private Dictionary<(int,int), string> grid = new Dictionary<(int,int), string>();
grid[(placeX,placeY)] = Building.name;
Instantiate(Building, new Vector3(placeX, 0, placeY), Quaternion.identity); // в курсе что там Z но у меня такая сетка
grid[(placeX,placeY)] = "";
Destroy (???);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question