📅  最后修改于: 2022-03-11 14:49:17.144000             🧑  作者: Mango
Vector3 newPos = new Vector3(transform.position.x, posY, transform.position.z);
transform.position = Vector3.Lerp(transform.position, newPos, Time.deltaTime * transitionSpeed);