1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
void ShiftPoints()
{
if (AllPoints.Count <= MaxCount)
return;
for (int i = 0; i < MaxCount; i++)
{
AllPoints[i] = new Vector3(AllPoints[i].x, AllPoints[i + 1].y,0);
}
AllPoints.RemoveRange(MaxCount, 1);
}
void ShiftPoints()
{
if (AllPoints.Count <= MaxCount)
return;
for (int i = 0; i < MaxCount; i++)
{
AllPoints[i] = AllPoints[i + 1].y;
}
AllPoints.RemoveRange(MaxCount, 1);
}
| cs |
2020년 3월 25일 수요일
c# list 한칸 shift 하기
피드 구독하기:
댓글 (Atom)
git rejected error(feat. cherry-pick)
문제 아무 생각 없이 pull을 받지않고 로컬에서 작업! 커밋, 푸시 진행을 해버렷다. push에선 remote와 다르니 당연히 pull을 진행해라고 하지만 로컬에서 작업한 내용을 백업하지 않고 진행하기에는 부담스럽다(로컬작업 유실 가능성) 해결하려...
댓글 없음:
댓글 쓰기