Ever since 4.1 lots of unity coding techniques no longer work for example i had code from a long time ago:
var camera2d : Transform;
function OnTriggerEnter(coll:Collider){
GetComponent("CameraFollow2D").enabled = false;
camera2d.transform.Translate(Vector3(0,10,0));
}
Now this no longer works because enabled is not a member of unity.engine.component i thought maybe i got it wrongs i checked the documentation copied there line of code same thing seriously what is going wrong here unity lots of code no longer works how does enabled not work with get component?