private void Update() { float dtTime = Time.deltaTime; StartZ -= Speed * dtTime; Vector3 startPos = new Vector3(0, 0, StartZ); m_CurveGroups.UpdateCell(startPos); if (StartZ < Border) { StartZ = m_CurveGroups.CalcNewPos() - CellSize; } }