2019년 8월 1일 목요일

중복계산

1
2
3
4
5
6
7
8
9
10
11
List<Group> _currentGroups =  SimulationManager.PageGroup.GetCurrentPage(); //PPAg
 
            int[] indexes = _currentGroups.Select(x => x.itemIdx).ToArray();
 
            GroupItem_Info[] groups = GroupContents.GetComponentsInChildren<GroupItem_Info>(); //UI
 
            int[] uiIndexes = groups.Select(x => x.objIdx).ToArray();
 
 
 
            int[] intercept = indexes.Intersect(uiIndexes).ToArray(); //중복되는idx 찾기
cs

git rejected error(feat. cherry-pick)

 문제 아무 생각 없이 pull을 받지않고 로컬에서 작업! 커밋, 푸시 진행을 해버렷다. push에선 remote와 다르니 당연히 pull을 진행해라고 하지만 로컬에서 작업한 내용을 백업하지 않고 진행하기에는 부담스럽다(로컬작업 유실 가능성) 해결하려...