2025-07-08 10:46:31 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace SingularityGroup.HotReload.Editor {
|
|
|
|
interface ICompileChecker {
|
|
|
|
event Action onCompilationFinished;
|
|
|
|
bool hasCompileErrors { get; }
|
|
|
|
}
|
|
|
|
|
|
|
|
static class CompileChecker {
|
|
|
|
internal static ICompileChecker Create() {
|
|
|
|
#if UNITY_2019_1_OR_NEWER
|
|
|
|
return new DefaultCompileChecker();
|
|
|
|
#else
|
|
|
|
return new LegacyCompileChecker();
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|