Hello together,
i’ve a little problem with using the “OnEnterTrigger” function.
What i want to do is that the object (Bullet) that enters the Trigger should do something and than it should be destroyed. The problem is that the object enters a first trigger, does something, than move on and enters another trigger, does something too and than it become destroyed.
Here a little graphic to demonstrate my problem:
The Bullet hits both enemys before it is destroyed ![]()
How can i ensure that the bullet only hits one target?