private void OnUpdatePlayerCommandAction(CommandResponse c) { try { PlayerList playerList = JsonUtility.FromJson <PlayerList> (c.payload); UpdatePlayerList(PlayerList.AsList(playerList)); } catch (NullReferenceException err) { newPlayerList = ""; Debug.LogWarning("Wrong Player payload serialization or other related nullpoint @ UpdatePlayerList:" + err); } catch (UnityException err) { Debug.LogError(err); } }