Skip to content

Instantly share code, notes, and snippets.

@DongguemYoo
Last active April 24, 2020 01:34
Show Gist options
  • Save DongguemYoo/11c38f466b26edfcc831e46afef58931 to your computer and use it in GitHub Desktop.
Save DongguemYoo/11c38f466b26edfcc831e46afef58931 to your computer and use it in GitHub Desktop.
shiftList
void ShiftPoints()
{
//max카운트 넘어가면 시프팅을 시작한다
if (AllPoints.Count <= MaxCount)
return;
for (int i = 0; i < MaxCount; i++)
{
AllPoints[i] = AllPoints[i + 1].y;
}
AllPoints.RemoveRange(MaxCount, 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment