Hi there, I cover how to correct this bug in my errata pages for the book, see the workaround there, but Senad is correct in his / her assumption that casting to generic Component solves the issue, see the site for any other mistakes in the book.
[http://unitybook.net/book-errata/][1]
[1]: http://unitybook.net/book-errata/
Thanks for buying the book, I hope it helps you get started with Unity.
↧