コード例 #1
0
    private void CreateDownloadTranslations()
    {
        CreateLoginWindow();

        mDownloadType = (DownloadType)EditorGUILayout.EnumPopup("Option:", mDownloadType);

        if (GUILayout.Button("DownLoad"))
        {
            Dictionary <EB.Language, string> transData = LocalizationUtils.DownloadTranslations();
            SaveLogin(transData != null);

            if (transData != null)
            {
                if (mDownloadType == DownloadType.CoverToResources)
                {
                    LocalizationUtils.CoverTranslationsToResources(transData);
                }
                else if (mDownloadType == DownloadType.PatchToResources)
                {
                    LocalizationUtils.PatchTranslationsToResources(transData);
                }

                /*else if (mDownloadType == DownloadType.PatchToBundles)
                 * {
                 *  LocalizationUtils.PatchTranslationsToBundles(transData);
                 * }*/
            }
            else
            {
                Debug.LogWarning("LocalizationEditor.CreateDownloadTranslations DownLoad Failed!");
            }
        }
    }