I cant Disable Collider
Hello! Im begginer in Unity. My game is 2D . I have 3 Colliders 2D (Left, Mid and Right). Example: If player its on Right Line and press Left-Button the player go to Mid Line and stops here, if I press again Left-Button, the player go to Left Line.
How can I dissable de Mid Collider when player stops there and need move to left or right ??
I try codding this all day but i cant do it works (I see all forums but i have new version of unity ). I have Unity 5.6.0f3 !! Thanks you!
Answer by Cuttlas-U · Apr 07, 2017 at 08:55 AM
hi; with this u can disable a collider;
GetComponent<Collider2D>().enabled = false;
Your answer
Follow this Question
Related Questions
Audio Issues with Animation + Grounded 0 Answers
Script not working on Colliders 0 Answers
How to check if any/multiple 2D sprites neighbour/collide with eachother 0 Answers
Is there a way to prevent my character colliding with background? 0 Answers
How to create 2D terrain procedurally with 2D physics colliders ? 0 Answers