Example #1
0
        public static void SpawnRemotePlayerModel(PlayerData playerData)
        {
            RemotePlayerModel model = new RemotePlayerModel(playerData.PlayerId);

            remotePlayersModels.Add(playerData.PlayerId, model);
            UpdatePlayerColor(playerData.PlayerId, playerData.Color);
        }
Example #2
0
        public static void SpawnRemotePlayerModel(PlayerData playerData)
        {
            using (GetRemotePlayersModels(out var remotePlayersModels))
            {
                if (!remotePlayersModels.ContainsKey(playerData.PlayerId))
                {
                    RemotePlayerModel model = new RemotePlayerModel(playerData.PlayerId, playerData.Username);
                    remotePlayersModels.Add(playerData.PlayerId, model);
                }
            }

            UpdatePlayerColor(playerData.PlayerId, playerData.MechaColor);
        }