Answer the question
In order to leave comments, you need to log in
How to handle object collision in C#?
Can you please tell me how to compare tags of colliding game objects from different arrays (lists) in C#?
I need to write a code that, when colliding, calculates whether the colliding objects have the same tags, if they are the same, then one action, if not, then another
Ps I am a beginner
I work in Unity, objects collide through the OnCollisionEnter () function
Answer the question
In order to leave comments, you need to log in
I propose from the beginning to answer the question - how is it determined that the objects collided?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question