ICompileChecker.cs 467 B

123456789101112131415161718
  1. using System;
  2. namespace SingularityGroup.HotReload.Editor {
  3. interface ICompileChecker {
  4. event Action onCompilationFinished;
  5. bool hasCompileErrors { get; }
  6. }
  7. static class CompileChecker {
  8. internal static ICompileChecker Create() {
  9. #if UNITY_2019_1_OR_NEWER
  10. return new DefaultCompileChecker();
  11. #else
  12. return new LegacyCompileChecker();
  13. #endif
  14. }
  15. }
  16. }