protected override void HandleScreenshotUserChoice(string path, ScreenshotUserChoice choice) { switch (choice) { case ScreenshotUserChoice.Open: EditorUtility.RevealInFinder(path); break; case ScreenshotUserChoice.Delete: File.Delete(path); break; case ScreenshotUserChoice.Continue: break; default: throw new ArgumentOutOfRangeException(nameof(choice), choice, "Value not expected."); } }
protected override void HandleScreenshotUserChoice(string path, ScreenshotUserChoice choice) { switch (choice) { case ScreenshotUserChoice.Open: Application.OpenURL($"file://{Path.GetFullPath(path)}"); break; case ScreenshotUserChoice.Delete: File.Delete(path); break; case ScreenshotUserChoice.Continue: break; default: this.dialog.Show("Not Supported.", $"Option {choice} is not supported at this time."); break; } }
protected abstract void HandleScreenshotUserChoice(string path, ScreenshotUserChoice choice);