From e9170a96e4093de7d86143c4cc3e79db7bb99897 Mon Sep 17 00:00:00 2001 From: Marine Date: Sun, 28 Jan 2024 01:15:05 +0100 Subject: [PATCH] Test is first --- Assets/Scripts/GameManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index a4afc4c..cefaed4 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -349,9 +349,9 @@ private void CheckIfIAmTheFirst(List players) if (players.Count > 1) { - IOrderedEnumerable sortedList = players.OrderBy(x => x.creationDate); + List sortedList = players.OrderBy(x => x.creationDate).ToList(); - if (sortedList.Last().id == currentPlayer.id) + if (sortedList[0].id == currentPlayer.id) { isFirst = true; }