以下エラーがでる場合はプロパティが参照できないときみたい
Only assignment, call, increment, decrement, and new object expressions can be used as a statement
GameObjectの以下のプロパティが消えたらしい
コピペで持ってきたコードとかひっかかりそう
Animation Audio Collider Collider2D GuiText GuiTexture NetworkView ParticleEmitter ParticleSystem Renderer Rigidbody Rigidbody2D
対応方法(サンプル)
以前(5未満)
gameObject.renderer.texture = sample_texture;
これから
gameObject.GetComponent<Renderer>().texture = sample_texture;
よく使う場合はStartとかAwakeでとっとくといいかもですね
参考
Unity 5: API changes & automatic script updating – Unity Blog