C#でエラーになる理由。
transform.localPosition.x = 1.0f;
はエラーになる、
このlocalPositionの部分がVector3なので、
URL: http://docs.unity3d.com/ScriptReference/Vector3.html
This structure is used throughout Unity to pass 3D positions and directions around. It also contains functions for doing common vector operations.
にあるように、
・参照型のクラスではない
・構造体の値型である