void OnEnable()
    {
        alignId = 4;

        style                   = new GUIStyle();
        style.fontStyle         = FontStyle.Bold;
        style.onHover.textColor = Color.blue;
        style.normal.textColor  = Color.blue;
        style                   = new GUIStyle(style);
        layerDepthMultiplier    = 0.1f;
        lasTool                 = Tools.current;
        selGridInt              = 0;
        switchTool              = false;
        instance                = this;
        //is this evenright?

        align          = Vector2.zero;
        alreadyRotated = false;
        rotation       = 0;
        overWrite      = true;
        snapping       = true;
        activateTools  = true;

        layers = new List <Layer> ();

        beginPos = Vector3.zero;
        endPos   = Vector3.zero;

        LoadLayers();



        SceneView.onSceneGUIDelegate += SceneGUI;
    }
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        window = (MapMaker2D)EditorWindow.GetWindow(typeof(MapMaker2D));
        window.Show();



        window.minSize      = new Vector2(200, 315);
        window.titleContent = new GUIContent("MapMaker 2D");
    }