TriLibSplashScreen.cs 590 B

1234567891011121314151617181920212223
  1. using UnityEditor;
  2. using UnityEngine;
  3. namespace TriLibCore.Editor
  4. {
  5. [InitializeOnLoad]
  6. public class TriLibSplashScreen
  7. {
  8. static TriLibSplashScreen()
  9. {
  10. EditorApplication.update += Update;
  11. }
  12. private static void Update()
  13. {
  14. EditorApplication.update -= Update;
  15. if (!EditorApplication.isPlayingOrWillChangePlaymode && !EditorPrefs.GetBool(TriLibVersionInfo.Instance.SkipVersionInfoKey))
  16. {
  17. TriLibVersionNotes.ShowWindow();
  18. }
  19. }
  20. }
  21. }