public void OnFrame(HashSet <HandCursor> activeCursors) { foreach (Atom atom in atoms) { atom.outlineThickness = 0; } foreach (HandCursor cursor in activeCursors) { if (cursor.isPinching) { if (!cursor.wasPinching) { if (cursor.position.y < binHeight) { Atom atom = atomPrefab.CreateNew(binElement); cursor.Grab(atom); } } if (cursor.grabbedAtom != null) { cursor.UpdateGrab(); cursor.grabbedAtom.OnFrame(); } } else { cursor.Release(); } } }