|
@@ -270,12 +270,12 @@ public class EnemyCreater : MonoBehaviour
|
|
|
}
|
|
}
|
|
|
for(int i = 0; i < 2; i++)
|
|
for(int i = 0; i < 2; i++)
|
|
|
{
|
|
{
|
|
|
- if(soldierRank[2] > idSort[i][0])
|
|
|
|
|
|
|
+ if(soldierRank[2] > soldierRank[idSort[i][0]])
|
|
|
{
|
|
{
|
|
|
idSort.Insert(i, new List<int> { 2 });
|
|
idSort.Insert(i, new List<int> { 2 });
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- if(soldierRank[2] == idSort[i][0])
|
|
|
|
|
|
|
+ if(soldierRank[2] == soldierRank[idSort[i][0]])
|
|
|
{
|
|
{
|
|
|
idSort[i].Add(2);
|
|
idSort[i].Add(2);
|
|
|
break;
|
|
break;
|
|
@@ -287,9 +287,10 @@ public class EnemyCreater : MonoBehaviour
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
List<int> idList = new List<int> { 6,4,1 };
|
|
List<int> idList = new List<int> { 6,4,1 };
|
|
|
- int x0;
|
|
|
|
|
- int x1;
|
|
|
|
|
|
|
+ int x0 = -1;
|
|
|
|
|
+ int x1 = -1;
|
|
|
switch (idSort.Count)
|
|
switch (idSort.Count)
|
|
|
{
|
|
{
|
|
|
case 1:
|
|
case 1:
|
|
@@ -328,7 +329,6 @@ public class EnemyCreater : MonoBehaviour
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
if (id == 1 && levelTypes[1] == levelTypes[0])
|
|
if (id == 1 && levelTypes[1] == levelTypes[0])
|
|
|
{
|
|
{
|
|
|
GetLevelOrientation(1);
|
|
GetLevelOrientation(1);
|