public void reset() {nextWrite--;while(count > 0) {if (nextWrite == -1) {nextWrite = positions.length - 1;}positions[nextWrite--].reset();count--;}nextWrite = 0;nextPos = 0;count = 0;}
public void Reset(){nextWrite--;while (count > 0){if (nextWrite == -1){nextWrite = positions.Length - 1;}positions[nextWrite--].Reset();count--;}nextWrite = 0;nextPos = 0;count = 0;}