MixupGO

Author: KeliHlodversson

Description
This class combines ducktyping with Boo's IQuackFu interface, to wrap GameObjects into a dynamic object that automatically forwards all method calls to the first Component attached to it that implements the method.

Usage
Add MixupGO.js to your project and you will be able to do the following:

Boo
This will also work in Boo (just place the javascript inside Standard Assets to make it compile before the Boo script):

C#
C# Does not support ducktyping, so it will not see the added fields and methods.