Error Deleted

This commit is contained in:
brausjonas
2023-02-27 19:11:30 +01:00
parent 51155b4e97
commit 2ac191a99a
2 changed files with 2 additions and 27 deletions
+1 -1
View File
@@ -129,7 +129,7 @@
<workItem from="1676493059699" duration="795000" /> <workItem from="1676493059699" duration="795000" />
<workItem from="1676920253715" duration="2806000" /> <workItem from="1676920253715" duration="2806000" />
<workItem from="1677436455528" duration="8395000" /> <workItem from="1677436455528" duration="8395000" />
<workItem from="1677516389539" duration="4730000" /> <workItem from="1677516389539" duration="4881000" />
</task> </task>
<servers /> <servers />
</component> </component>
+1 -26
View File
@@ -88,38 +88,13 @@ public class Client : MonoBehaviour
} }
} }
int current = 1;
for (int j = 0; j < temp.Length; j++) for (int j = 0; j < temp.Length; j++)
{ {
for (int i = 0; i < temp.Length; i++) for (int i = 0; i < temp.Length; i++)
{ {
if (temp[j] == players[i]) if (temp[j] == players[i])
{ {
// playerInfoElements[i].textPlacement.text = j+1 + "."; playerInfoElements[i].textPlacement.text = j+1 + ".";
if (j + 1 < temp.Length)
{
if (temp[j].stars == temp[j + 1].stars && temp[j].coins == temp[j + 1].coins)
{
playerInfoElements[i].textPlacement.text = current + ".";
for (int f = 0; f < temp.Length; f++)
{
if (temp[j + 1] == players[f])
{
playerInfoElements[f].textPlacement.text = current + ".";
}
}
current += 2;
}
else
{
playerInfoElements[i].textPlacement.text = current + ".";
current++;
}
}
} }
} }
} }