public void SetIndex(int new_index) { if (new_index >= frames_.Count) { frame_index_ = frames_.Count - 1; } else { frame_index_ = new_index; } }