- Home /
Question by
unity_WSM22pirYaJ_jA · Apr 05, 2019 at 03:12 PM ·
c#prefabontriggerenter2dinteractable
How to stop prefab's cloness trigger-zone from triggering all of the other cloness trigger
So i created a Chest prefab that you can open and instantiates a coin if you're in the trigger-zone and you press E. It works fine if its alone. But if i make a clone of it, both of the react together and both instatiates a coin. How can i make it so that it works individually.
Comment
Each prefab works individually so whats happening is A your trigger zone is big and you are entrering both, B you are using an static var thats affecting all the classes, share the code so we can help you please