diff --git a/Assets/Scripts/PlayerList.cs b/Assets/Scripts/PlayerList.cs deleted file mode 100644 index e2153d0..0000000 --- a/Assets/Scripts/PlayerList.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Collections.Generic; -using TMPro; -using UnityEngine; - -public class PlayerList : MonoBehaviour { - HashSet playerIds = new(); - TMP_Text text; - - void Awake() { - text = GetComponent(); - text.text = ""; - } - - public void SetPlayerList(IEnumerable ids) { - playerIds.Clear(); - foreach (int id in ids) - playerIds.Add(id); - } - - public void Connected(int id) { - playerIds.Add(id); - UpdateList(); - } - - public void Disconnected(int id) { - playerIds.Remove(id); - UpdateList(); - } - - void UpdateList() { - text.text = ""; - foreach (int playerId in playerIds) - text.text += $"Player #{playerId}\n"; - } -} \ No newline at end of file diff --git a/Assets/Scripts/PlayerList.cs.meta b/Assets/Scripts/PlayerList.cs.meta deleted file mode 100644 index 4cf6775..0000000 --- a/Assets/Scripts/PlayerList.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8f4454c6a8ff1f5478829232f04817a5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Scripts/Squelette.asmdef b/Assets/Scripts/Squelette.asmdef index fe790c6..bf704c3 100644 --- a/Assets/Scripts/Squelette.asmdef +++ b/Assets/Scripts/Squelette.asmdef @@ -2,8 +2,7 @@ "name": "Squelette", "rootNamespace": "Squelette", "references": [ - "GUID:f2ae9fe63a6bc0544986e5b17cf9a8a5", - "GUID:6055be8ebefd69e48b49212b09b47b2f" + "GUID:f2ae9fe63a6bc0544986e5b17cf9a8a5" ], "includePlatforms": [], "excludePlatforms": [],