diff --git a/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml b/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml index b429297..403982b 100644 --- a/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml +++ b/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml @@ -129,7 +129,7 @@ - + diff --git a/FlufflParty/Assets/Scripts/Client.cs b/FlufflParty/Assets/Scripts/Client.cs index fd9bd11..2ace3c4 100644 --- a/FlufflParty/Assets/Scripts/Client.cs +++ b/FlufflParty/Assets/Scripts/Client.cs @@ -88,38 +88,13 @@ public class Client : MonoBehaviour } } - int current = 1; - for (int j = 0; j < temp.Length; j++) { for (int i = 0; i < temp.Length; i++) { if (temp[j] == players[i]) { - // 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++; - } - } + playerInfoElements[i].textPlacement.text = j+1 + "."; } } }