Пример #1
0
        private static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
        {
            CheckImportedAndDeletedAssetsNetworks(importedAssets, true);
            CheckImportedAndDeletedAssetsNetworks(deletedAssets, false);

            if (deletedAssets.Length > 0 || importedAssets.Length > 0)
            {
                #region VERY SIMPLE
                ScriptingSymbolsManager.SetAllVSSymbols();
                #endregion

                /*
                 #region ADS
                 * ScriptingSymbolsManager.SetAdColonySymbol (ExternalPackagesResolver.IsAdColonyAvailable);
                 * ScriptingSymbolsManager.SetAdmobSymbol (ExternalPackagesResolver.IsAdmobAvailable);
                 * ScriptingSymbolsManager.SetChartboostSymbol (ExternalPackagesResolver.IsChartBoostAvailable);
                 * ScriptingSymbolsManager.SetFacebookSymbol (ExternalPackagesResolver.IsFacebookAvailable);
                 #endregion
                 */

                #region DOTWEEN
                ScriptingSymbolsManager.SetAADotweenSymbol(ExternalPackagesResolver.IsDOTweenAvailable);
                #endregion
            }
        }
Пример #2
0
        static void RunOnce()
        {
            EditorApplication.update -= RunOnce;

            ScriptingSymbolsManager.SetAllVSSymbols();

            SettingsWindow.showAtStartup = EditorPrefs.GetInt(SettingsWindow.PREFSHOWATSTARTUP, 1) == 1;
            if (SettingsWindow.showAtStartup)
            {
                SDEUtility.OpenSettings();
            }
        }
Пример #3
0
 private static void CheckImportedAndDeletedAssetsNetworks(string[] assets, bool isImported)
 {
     foreach (string asset in assets)
     {
         if (asset.Contains(ExternalPackagesResolver.ChartBoostFolder))
         {
             ScriptingSymbolsManager.SetChartboostSymbol(isImported);
         }
         if (asset.Contains(ExternalPackagesResolver.AdmobFolder))
         {
             ScriptingSymbolsManager.SetAdmobSymbol(isImported);
         }
         if (asset.Contains(ExternalPackagesResolver.AdColonyFolder))
         {
             ScriptingSymbolsManager.SetAdColonySymbol(isImported);
         }
         if (asset.Contains(ExternalPackagesResolver.FacebookFolder))
         {
             ScriptingSymbolsManager.SetFacebookSymbol(isImported);
         }
     }
 }