Better Placement

This commit is contained in:
brausjonas
2023-02-27 19:07:40 +01:00
parent f3cfdffb51
commit 51155b4e97
9 changed files with 103 additions and 21 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+26 -1
View File
@@ -87,6 +87,8 @@ public class Client : MonoBehaviour
}
}
}
int current = 1;
for (int j = 0; j < temp.Length; j++)
{
@@ -94,7 +96,30 @@ public class Client : MonoBehaviour
{
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++;
}
}
}
}
}