public void InitSnazzySettings()
    {
        // GetInstallPath();
        installPath = SnazzyToolsEditor.installPath;
        snazzySettings = ObjectSearch.Find("##SnazzySettings##");

        if (snazzySettings == null) {
            snazzySettings = AssetDatabase.LoadAssetAtPath(installPath+"/Scripts/SnazzySettings.prefab",typeof (GameObject)) as GameObject;
            if (snazzySettings == null) Close ();
            snazzySettings.name = "##SnazzySettings##";
        }

        if (snazzySettings != null) {
            snazzy = snazzySettings.GetComponent<SnazzySettings>() as SnazzySettings;
        }
        snazzyGrid = ObjectSearch.Find("##SnazzyGrid##(Clone)");
        if (snazzyGrid != null) snazzyGridRenderer = snazzyGrid.GetComponent<MeshRenderer>() as MeshRenderer;
        LoadText();
    }
    static void InitReferences()
    {
        snazzyGrid = ObjectSearch.Find("##SnazzyGrid##(Clone)");
        camReference = ObjectSearch.Find("##SnazzyCameraReference##(Clone)");
        snazzySettings = GameObject.Find("##SnazzySettings##");

        // DestroyImmediate (snazzyGrid);
        if (snazzyGrid != null) {
            if (snazzyGrid.hideFlags == HideFlags.HideAndDontSave) DestroyImmediate(snazzyGrid);
        }

        if (snazzyGrid == null)
        {
          // Debug.Log("instantiage SnazzyGrid");
            snazzyGrid = Instantiate(AssetDatabase.LoadAssetAtPath(installPath+"/Sources/##SnazzyGrid##.prefab", typeof (GameObject)), Vector3.zero, Quaternion.identity) as GameObject;
          	snazzyGrid.name = "##SnazzyGrid##(Clone)";
            snazzyGrid.hideFlags = HideFlags.HideInHierarchy;
        }

        if (snazzyGrid != null) {
            snazzyGridRenderer = snazzyGrid.GetComponent<MeshRenderer>() as MeshRenderer;
            snazzyS = snazzyGrid.GetComponent<SnazzyScene>() as SnazzyScene;
            if (snazzyS != null) snazzyS.Init();
        }

        if (camReference == null)
        {
            // Debug.Log("instantiage SnazzyCameraReference");
            camReference = new GameObject();
            camReference.name = "##SnazzyCameraReference##(Clone)";
            camReference.hideFlags = HideFlags.HideAndDontSave;
        }
        if (snazzySettings == null) {
            // Debug.Log("instantiage SnazzySettings");
            snazzySettings = AssetDatabase.LoadAssetAtPath(installPath+"/Sources/SnazzySettings.prefab",typeof (GameObject)) as GameObject;
            snazzySettings.name = "##SnazzySettings##";
        }

        // Debug.Log ("i");
        if (snazzySettings != null) {
            snazzy = snazzySettings.GetComponent<SnazzySettings>() as SnazzySettings;
            // snazzy.gridIsEnabled = true;

            // CheckSnazzyGrid();
        }
    }