XDracam / unity-corelibrary

Collection of classes and extension methods that make life with Unity3D more comfortable
MIT License
15 stars 3 forks source link

Is, As and All as BaseBehaviour Methods #42

Closed Eregerog closed 5 years ago

Eregerog commented 5 years ago

So that you don't have to write this.Is<...> and can just write Is<...>

XDracam commented 5 years ago

I personally do not like this:

var foo = Is<Moveable>(); // what is moveable?

The explicit this. is nice, since it reads more like natural language. And 4 key presses for better code are definitely worth it 😁