📅  最后修改于: 2022-03-11 14:48:50.103000             🧑  作者: Mango
transform.Translate(1 ,1 ,1); //where coordinates are x, y and z respectively
//Similarly you can also use:
int speed; //variable
transform.Translate(Vector3.forward * Time.deltaTime * speed); //for moving along z axis