In my game I'm making a chunk generation script with trigger boxes acting as 10x10 chunks. My primary issue is that due to my setup, when I go back through an area I've already been through, then it will begin to double up on chunks. Since the two objects that are colliding are identical (including scripts), when I have the conflict trigger the destruction of the object, it will destroy both because they both run the same script and both execute the code at the same time. How can I make it so that only the first object remains when a conflict happens?
↧