Unity 2D sorting item by color
Hello i am a beginner in programming and i need some advices how to make one script in 2D : i have 1 red box and 1 blue box and i need sort item by color but blue item cannot go to red and red cannot go to blue.if red go to red than object will by destroyed...
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612062445im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
I can't figure out why a game object isn't being destroyed. 0 Answers
Need help coding collision detection to a destroy command. 0 Answers
2D: Destroy object with dynamic collider after exiting object with static collider 1 Answer
How to Destroy A GameObject when it enters any Triggers 2 Answers
Get tile from trigger 0 Answers