public void DeletePackageFiles(UFramePackage package) { var packagePath = Path.Combine(Path.Combine(ApplicationPath, "uFramePackages"), package.Id); ThreadingUtils.DispatchOnMainThread(() => { FileUtil.DeleteFileOrDirectory(packagePath); }); }
public void DrawControlPanel(Rect bounds, UFramePackage package) { if (GUI.Button(bounds, "Uninstall")) { InvertApplication.ExecuteInBackground(new QueueRevisionForUninstallCommand() { Package = package }); } }
public UFramePackageDescriptor GetPackageDescriptorByPackage(UFramePackage package) { return(GetPackageDescriptorById(package.Id)); }