If OnTriggerEnter and OnTriggerExit simultaneously?
Basically I have this game mechanic that requires the player to connect 4 vertices using a brush mechanic based on LineRenderer in order to make a rectangle appear.
Let's say the player starts at Vertice 1. While holding the left button, the drawing begins.
Player has to go from Vertice 1 to 2, 2 to 3, and so on until all vertices are connected.
The player cannot leave these colliders, else the line is erased ( the empty rectangle in the middle also counts as a trigger exit, therefore destroying the line renderer gameObject.. But if the player starts at V1 yellow collider and enters the one above it, it counts as a exit trigger. How can I verify if the player entered and exited a trigger in the same condition? Sorry if I'm being vague, I'm having a hard time explaining myself as English is not my native language!
Your answer
Follow this Question
Related Questions
how to make particles NOT collide with triggers? 1 Answer
Why is OnTriggerEnter2d not being called? 1 Answer
Collision2D enable/disable problem 1 Answer
When is OnTriggerExit2D called? 1 Answer
2D platformer Hide Action not working 0 Answers