how can I destroy the object in the scene? I tried this but he is only removing the list.
I want to destroy an object at a time when collide. But I wanted to destroy one by one, like a life system, it collided gone a life, if collided again gone another. sry im new in C#
if (col.gameObject.tag == "pipoca_envenenada") {
Destroy (vidasControl.vidas[1]); // vidasControl.vidas[1] only destroy one object and vidasControl.vidas[] error in console
Destroy (col.gameObject);
}