예제 #1
0
            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();
                        }
                    }
                }
            }
예제 #2
0
            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;
                        }
                    }
                }
            }