﻿using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEngine;
using System.IO;
#if UNITY_EDITOR
using UnityEditor;


public class FolderFixer : MonoBehaviour {

	[BoolToButton("fixFolders")]
	public bool fixFolders = false;
	// Here for spacing rather than actual functionality
	[BoolToButton("")]
	public bool empty = false;


	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}

	void MoveFilesBack (bool fix) {

		if (fix) {
			AssetDatabase.FindAssets ("Assets/Levels");
		}

		/*
		if (AssetDatabase.IsValidFolder ("Assets/Prefabs/Boardgame Parts")) {
			FileUtil.MoveFileOrDirectory ("Assets/Prefabs/Boardgame Parts", "Assets/Prefabs/Bridges/Boardgame Parts");
			FileUtil.MoveFileOrDirectory ("Assets/Prefabs/Boardgame Parts.meta", "Assets/Prefabs/Bridges/Boardgame Parts.meta");
			AssetDatabase.Refresh();
		}
		*/
	}
}
#endif
