コード例 #1
0
 public void StartCombineGroup()
 {
     if (combineGroup.Count < 2)
     {
         return;
     }
     for (int i = 0; i < combineGroup.Count; i++)
     {
         int      startIdx = combineGroup[i];
         MeshNode org      = Data[startIdx];
         Dictionary <int, Vector2> combinePoints = new Dictionary <int, Vector2>();
         for (int j = 0; j < combineGroup.Count; j++)
         {
             if (j == i)
             {
                 continue;
             }
             int idx = combineGroup[j];
             org.CheckCanCombine(combineRadius, Data[idx], out combinePoints);
             org.AddPointItem(combinePoints);
         }
         org.RefreshMesh(true);
         org.SetSelectColor(false);
     }
 }