From 2c3f749f7507881753ac4bcc8d4077a54c7e7f88 Mon Sep 17 00:00:00 2001 From: MB Date: Sat, 26 Jan 2019 18:43:07 +1100 Subject: [PATCH] Dummy spawns for all players --- Assets/Scipts/Map.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Assets/Scipts/Map.cs b/Assets/Scipts/Map.cs index daba4b4..a0e4ed2 100644 --- a/Assets/Scipts/Map.cs +++ b/Assets/Scipts/Map.cs @@ -5,6 +5,8 @@ using UnityEngine; public class Map : MonoBehaviour { GameObject LocalPlayer; + List Players = new List(); + public GameObject[] Tiles; public List Landmarks; @@ -29,16 +31,21 @@ public class Map : MonoBehaviour { #region StartupFunctions private void Start() { + LocalPlayer = Multiplayer.PlayersManager.Instance.LocalPlayer; + Players.Add(LocalPlayer); + foreach (GameObject curPlayer in Multiplayer.PlayersManager.Instance.RemotePlayers.Values) + { + Players.Add(curPlayer); + } //GenerateMap(); CreateDummys(); - LocalPlayer = Multiplayer.PlayersManager.Instance.LocalPlayer; } //Create dummy players for the world wrapping void CreateDummys() { - List Players = new List(); + foreach (GameObject Player in Players) { Player PS = Player.GetComponent();