//TODO put to the right place
 void Update()
 {
     if (Input.GetKeyDown(EditorInputManger.Instance().Save))
     {
         Save();
     }
 }
 //TODO put to the right place
 void Update()
 {
     if (Input.GetKeyDown(EditorInputManger.Instance().Load))
     {
         LoadEditor();
     }
 }
 public static EditorInputManger Instance()
 {
     if (instance == null)
     {
         instance = new EditorInputManger();
     }
     return(instance);
 }
    public override void Update()
    {
        if (Input.GetKeyDown(EditorInputManger.Instance().RemovePrefab))
        {
            editor.CurrentTile.Clear(editor.LayerIndex);
        }

        if (Input.GetMouseButtonDown(0))
        {
            if (editor.CurrentTile != null && editor.Preview != null)
            {
                editor.CurrentTile.AddPrefab(editor.InstantiatePrefab(), editor.LayerIndex);
            }
            else
            {
                if (editor.Preview != null)
                {
                    editor.DestroyPrefab();
                }
            }
        }
    }