private void OnMapLoaded()
    {
        if (!isServer)
        {
            return;
        }

        map = MapController.Instance.Map;
        Debug.Log(map.Blocks.Count + " blocks");
        var jsonMap = JsonUtility.ToJson(map);

        RpcUpdateMap(jsonMap);
    }
    private void RpcUpdateMap(string jsonMapData)
    {
        if (isServer)
        {
            return;
        }

        var data = JsonUtility.FromJson <MapData>(jsonMapData);

        Debug.Log(data.Blocks.Count + " blocks");
        map = data;
        MapController.Instance.Map = map;
        MapController.Instance.RefreshScene();
    }