There is a tower and a door.The door is different object, named “Doorr” with a tag aswell as “Doorr”.
I have on the other side of the map a collider trigger, that i want when the user collides(ontrigger) to destroy the object doorr which is on the other side of the map.
Can you help me on what code to use?
target = GameObject.FindGameObjectsWithTag(“Doorr”);
Destroy(target, 0.0f);