>>229
Vector3はclassではなくstructかつ.x .y .zはプロパティだからsetが出来ない
あとgetは1回で済ました方がいいよ
Vector3 pos = transform.position;
pos.x += 0.1;
transfom.positon = pos;