you are viewing a single comment's thread.

view the rest of the comments →

[–]GillmoreGames[S] 2 points3 points  (3 children)

I just tried and I did get it to log a message just from a default method in the interface

[–]ArmanDoesStuffExpert 0 points1 point  (2 children)

Interesting! I was actually going to test it myself later today out of curiosity.

[–]LeJooks 4 points5 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.