public void PublishPackage(PackageVersion packageVersion, bool deleteLocal)
        {
            PackageMakerState.NoticeMessage.Value = "插件上传中,请稍后...";

            PackageMakerState.InUploadingView.Value = true;
            PackageMakerState.InEditorView.Value    = false;
            PackageMakerState.InFinishView.Value    = false;

            UploadPackage.DoUpload(packageVersion, () =>
            {
                if (deleteLocal)
                {
                    Directory.Delete(packageVersion.InstallPath, true);
                    AssetDatabase.Refresh();
                }

                PackageMakerState.UpdateResult.Value = "上传成功";

                PackageMakerState.InEditorView.Value    = false;
                PackageMakerState.InUploadingView.Value = false;
                PackageMakerState.InFinishView.Value    = true;

                if (EditorUtility.DisplayDialog("上传结果", PackageMakerState.UpdateResult.Value, "OK"))
                {
                    AssetDatabase.Refresh();

                    EditorWindow.focusedWindow.Close();
                }
            });
        }
Beispiel #2
0
 private void Upload()
 {
     UploadPackage.DoUpload(mPackageVersion, () =>
     {
         mUploadResult = "上传成功";
         GotoComplete();
     });
 }
Beispiel #3
0
 private void Upload()
 {
     this.StartCoroutine(UploadPackage.DoUpload(User.Username, User.Password, mPackageVersion, () =>
     {
         mUploadResult = "上传成功";
         GotoComplete();
     }));
 }