Esempio n. 1
0
    void OnWizardCreate()
    {
        string strTarget = System.Enum.GetName(typeof(BuildTarget), Target);

        if (strTarget == null || strTarget == "")
        {
            return;
        }

        if (strHistoryVer != null && strHistoryVer.Length >= 1)
        {
            if (!CompareVersion(Major + "." + Minor + "." + Build + "." + Revision, strHistoryVer[strHistoryVer.Length - 1]))
            {
                EditorUtility.DisplayDialog("Error", "Target Version Invalid", "Quit");
                CreateWizard();
                return;
            }
        }

        VersionManager.CreateNewVersion(Target, Major, Minor, Build, Revision, Notices);
    }