Exemplo n.º 1
0
        void Start()
        {
            adsSettings = WiseWingGamesSetup.instance.GetAdsSettings;

            InitHeyZap();

            AdRequestAvailable();

            FetchAds();

            //Show Heyzap test suite........
            if (adsSettings.showTestSuite)
            {
                HeyzapAds.ShowMediationTestSuite();
            }
        }
Exemplo n.º 2
0
        public static void CreateAdSettings()
        {
            AdsSettings asset = ScriptableObject.CreateInstance <AdsSettings> ();

            if (!AssetDatabase.IsValidFolder("Assets/Wise Wing Games/Settings"))
            {
                AssetDatabase.CreateFolder("Assets/Wise Wing Games", "Settings");
            }
            AssetDatabase.CreateAsset(asset, "Assets/Wise Wing Games/Settings/AdsSettings.asset");

            AssetDatabase.SaveAssets();

            string[] folder = new string[] { "Assets/Wise Wing Games/Settings" };
            if (AssetDatabase.FindAssets("AdsSettings", folder).Length == 1)
            {
                EditorUtility.DisplayDialog("Wise Wing Games", "Ads Settings created Successfully!!!  :)", "Acha!");
            }
            else
            {
                EditorUtility.DisplayDialog("Wise Wing Games", "Ads Settings creation Failed!!!  See Console!  :(", "Acha!");
            }
            SelectAdsSettings();
        }