public static void Init()
        {
            GridEditor window = GetWindow <GridEditor>();

            window.titleContent = new GUIContent("Grid Editor");
            window.minSize      = new Vector2(210f, 70f);
        }
        public static void Init()
        {
            instance = GetWindow <GridEditor>();
            instance.titleContent = new GUIContent("Grid Editor");
            instance.minSize      = new Vector2(210f, 70f);

            if (!lineMaterial)
            {
                lineMaterial           = new Material(Shader.Find("Hidden/Internal-Colored"));
                lineMaterial.hideFlags = HideFlags.HideAndDontSave;
            }
        }