【发布时间】:2016-10-06 07:19:33
【问题描述】:
在Update 函数中:
UpdateSpheres 创建对象然后移动它们,但是它们移动得很慢。
private void Update()
{
UpdateSpheres();
MoveShips();
}
private void MoveShips()
{
var spheres = GameObject.FindGameObjectsWithTag("MySphere");
foreach (Transform child in spheres[0].transform)
{
child.transform.position += Vector3.forward * Time.deltaTime;
}
}
【问题讨论】: