public void Sync(int globalIndex) { if (globalIndex > start && globalIndex < end) { visiblityWorker(true); surface.GotoFrame(globalIndex - start); // localize global index to surface index } else { visiblityWorker(false); } }