23 lines
568 B
C#
23 lines
568 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace TriLibCore.Editor
|
|
{
|
|
[InitializeOnLoad]
|
|
public class TriLibSplashScreen
|
|
{
|
|
static TriLibSplashScreen()
|
|
{
|
|
EditorApplication.update += Update;
|
|
}
|
|
|
|
private static void Update()
|
|
{
|
|
EditorApplication.update -= Update;
|
|
if (!EditorApplication.isPlayingOrWillChangePlaymode && !EditorPrefs.GetBool(TriLibVersionInfo.Instance.SkipVersionInfoKey))
|
|
{
|
|
TriLibVersionNotes.ShowWindow();
|
|
}
|
|
}
|
|
}
|
|
} |