Level editor from CMU

Is it possible to attach behaviour scripts to individual objects? It will be great if scripts can be made into an component that can be attached individual objects.