Beispiel #1
0
        private static void DrawUnityAdsUI()
        {
            if (UM_DefinesResolver.IsUnityAdsInstalled)
            {
                DrawUnityAdsSettins();
            }
            else
            {
                EditorGUILayout.HelpBox("Unity Monetization SDK Missing!", MessageType.Warning);
                using (new SA_GuiBeginHorizontal()) {
                    GUILayout.FlexibleSpace();
                    var click = GUILayout.Button("Download SDK", EditorStyles.miniButton, GUILayout.Width(120));
                    if (click)
                    {
                        Application.OpenURL(UNITY_ADS_SDK_DOWNLOAD_URL);
                    }

                    var refreshClick = GUILayout.Button("Refresh", EditorStyles.miniButton, GUILayout.Width(120));
                    if (refreshClick)
                    {
                        UM_DefinesResolver.ProcessAssets();
                    }
                }
            }
        }
Beispiel #2
0
        private void DrawAdmobUI()
        {
            if (UM_DefinesResolver.IsAdMobInstalled)
            {
                EditorGUILayout.HelpBox("Google Mobile Ads SDK Installed!", MessageType.Info);
                DrawAdMobSettings();
            }
            else
            {
                EditorGUILayout.HelpBox("Google Mobile Ads SDK Missing!", MessageType.Warning);
                using (new SA_GuiBeginHorizontal()) {
                    GUILayout.FlexibleSpace();
                    var click = GUILayout.Button("Import SDK", EditorStyles.miniButton, GUILayout.Width(120));
                    if (click)
                    {
                        SA_PackageManager.DownloadAndImport("Google Mobiel Ads SDK", AD_MOB_SDK_DOWNLOAD_URL, interactive: false);
                    }

                    var refreshClick = GUILayout.Button("Refresh", EditorStyles.miniButton, GUILayout.Width(120));
                    if (refreshClick)
                    {
                        UM_DefinesResolver.ProcessAssets();
                    }
                }
            }
        }
Beispiel #3
0
        protected override void OnServiceUI()
        {
            using (new SA_WindowBlockWithSpace(new GUIContent("Playmaker"))) {
                if (UM_DefinesResolver.IsPlayMakerInstalled)
                {
                    EditorGUILayout.HelpBox("PlayMaker Plugin Installed!", MessageType.Info);
                    DrawPlayMakerSettings();
                }
                else
                {
                    EditorGUILayout.HelpBox("PlayMaker Plugin is Missing!", MessageType.Warning);
                    using (new SA_GuiBeginHorizontal()) {
                        GUILayout.FlexibleSpace();
                        var click = GUILayout.Button("Get Playmaker", EditorStyles.miniButton, GUILayout.Width(120));
                        if (click)
                        {
                            Application.OpenURL(PLAYMAKER_STORE_URL);
                        }

                        var refreshClick = GUILayout.Button("Refresh", EditorStyles.miniButton, GUILayout.Width(120));
                        if (refreshClick)
                        {
                            UM_DefinesResolver.ProcessAssets();
                        }
                    }

                    EditorGUILayout.Space();
                    EditorGUILayout.HelpBox("Dev mode section!", MessageType.Info);
                    #if SA_DEVELOPMENT_PROJECT
                    DrawPlayMakerSettings();
                    #endif
                }
            }
        }
        static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
        {
            foreach (string assetPath in importedAssets)
            {
                UM_DefinesResolver.ProcessAssetImport(assetPath);
            }


            foreach (string assetPath in deletedAssets)
            {
                UM_DefinesResolver.ProcessAssetDelete(assetPath);
            }
        }
        static UM_DefinesResolver()
        {
            var instalation = new UM_DefinesResolver();

            instalation.Init();
        }