static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) { foreach (string str in importedAssets) { if (str.Contains("StylizedWaterCore.cs")) { StylizedWaterCore.CheckUnityVersion(); VersionChecking.CheckForUpdate(); if (!compatibleVersion || untestedVersion) { SWS_Window.ShowWindow(); } } } }
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) { foreach (string str in importedAssets) { if (str.Contains("StylizedWaterCore.cs")) { StylizedWaterCore.CheckUnityVersion(); VersionChecking.CheckForUpdate(); if (!compatibleVersion || untestedVersion) { //Only show the window (with warnings) when the project opens if (WindowAppeared == false) { SWS_Window.ShowWindow(); } WindowAppeared = true; } } } }