public override void OnInspectorGUI()
    {
        VoxelSurface voxelSurface = (VoxelSurface)target;

        voxelSurface.size       = EditorGUILayout.IntField("Size", voxelSurface.size);
        voxelSurface.drawGizmos = EditorGUILayout.Toggle("Draw Gizmos", voxelSurface.drawGizmos);

        if (voxelSurface.entityField != null)
        {
            EditorGUILayout.IntField("Number of Entities", voxelSurface.entityField.entities.Count);
        }

        if (voxelSurface.navMesh != null)
        {
            EditorGUILayout.IntField("NavMesh positions Count", voxelSurface.navMesh.positions.Count);
            EditorGUILayout.IntField("NavMesh connections Count", voxelSurface.navMesh.connections.Count);
        }
        else
        {
            EditorGUILayout.LabelField("No nav mesh");
        }

        if (GUILayout.Button("Initialize"))
        {
            voxelSurface.Initialize();
        }

        if (GUILayout.Button("Create Own Mesh"))
        {
            voxelSurface.CreateOwnMesh();
        }
    }