From 2ac191a99af59696703a8da768accf463f8f378b Mon Sep 17 00:00:00 2001 From: brausjonas Date: Mon, 27 Feb 2023 19:11:30 +0100 Subject: [PATCH] Error Deleted --- .../.idea.FlufflParty/.idea/workspace.xml | 2 +- FlufflParty/Assets/Scripts/Client.cs | 27 +------------------ 2 files changed, 2 insertions(+), 27 deletions(-) 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 + "."; } } }