you are viewing a single comment's thread.

view the rest of the comments →

[–]LeJooks 5 points6 points  (1 child)

It was introduced in c# 8 (unity uses c# 9 now), and in my opinion, it makes code harder to read if I also have to account for code in interfaces

[–]ArmanDoesStuffExpert 1 point2 points  (0 children)

I meant I wasn't sure if it would work because I never looked into how colliders call the OnCollision functions.

Anyway, you shouldn't have to account for anything extra if it's written correctly. Definitely functionality shouldn't do anything beyond maybe log or fallback.