コード例 #1
0
    static void OpenWizard()
    {
        DisplayWizard <CADImporterWizard>("CAD Importer", "Done", "Import");

        // ライセンス認証(ライセンスファイルの有無とライセンスの一致を確認する)
        if (cadManager.CheckLicense() == false)
        {
            Debug.Log("License check NG.");
            licenseWizard            = LicenseWizard.DisplayWizard <LicenseWizard>("License Installer", "Cancel", "Install");
            licenseWizard.CadManager = cadManager;
            licenseWizard.ShowPopup();
        }
        else
        {
            Debug.Log("License check OK.");

#if DEBUG
#else
            // Version check
            var sVer = cadManager.CheckVersion();
            if (sVer != m_sRequiredAssembyVersion)
            {
                Debug.Log("Version Check Failed: " + sVer);
                EditorUtility.DisplayDialog("Error", "Version mismatch. Please extract Mono.RAIL.zip on root folder.", "OK");
            }
            else
            {
                Debug.Log("Version Check OK: " + sVer);
            }
#endif
        }
    }
コード例 #2
0
    static void OpenWizard()
    {
        DisplayWizard <CADImporterWizard>("CAD Importer", "Exit", "Import");

        if (cadManager.CheckLicense() == false)
        {
            Debug.Log("License check NG.");

            licenseWizard            = DisplayWizard <LicenseWizard>("License Installer", "Cancel", "Install");
            licenseWizard.CadManager = cadManager;
            licenseWizard.ShowPopup();
        }
        else
        {
            Debug.Log("License check OK.");

            // Version check
            string sVer = cadManager.CheckVersion();

            if (sVer != m_sRequiredAssembyVersion)
            {
                Debug.Log("Version Check Failed: " + sVer);
                EditorUtility.DisplayDialog("Error", "Version mismatch. Please extract Mono.RAIL.zip on root folder.", "OK");
            }
            else
            {
                Debug.Log("Version Check OK: " + sVer);
            }
        }
    }