CallbackData.cs 559 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using JetBrains.Annotations;
  4. using UnityEditor;
  5. namespace Packages.Rider.Editor.UnitTesting
  6. {
  7. public class CallbackData : ScriptableSingleton<CallbackData>
  8. {
  9. public bool isRider;
  10. [UsedImplicitly] public static event EventHandler Changed = (sender, args) => { };
  11. internal void RaiseChangedEvent()
  12. {
  13. Changed(null, EventArgs.Empty);
  14. }
  15. public List<TestEvent> events = new List<TestEvent>();
  16. [UsedImplicitly]
  17. public void Clear()
  18. {
  19. events.Clear();
  20. }
  21. }
  22. }