Closed Eregerog closed 5 years ago
You can still collision.transform.As<T>()
if I'm not mistaken
I will consider this for the next update
Indeed, but it's more code to write and can get quite messy in an if statement, where you just want to check if you collided with an object with a specific script
Bonus: I made these three work on every Component
as well as any Collision
to allow more expressive code in the future.
It's faster than writing collision.gameObject.As<>(), and I don't think it would lead to confusion