脚本是C#
Vector3 target = new Vector3(0,0,0);
gameObject.transform.position = target;
这样没问题,但是把坐标改成小数就会报错
报错内容
The best overloaded method match for `UnityEngine.Vector3.Vector3(float, float, float)' has some invalid arguments
Argument `#1' cannot convert `double' expression to type `float'
具体怎么改,谢谢各位