Exemplo n.º 1
0
        public void InitializeAdService()
        {
#if UNITY_EDITOR
            Debug.Log("Chartboost ads can not be created in the edtior");
#endif
            gameObject.AddComponent <Chartboost>();

            CBSettings chartboostSetttings = ScriptableObject.CreateInstance <CBSettings>();

            chartboostSetttings.androidAppId = QuickAds.instance.ChartboostAndroidId;
            chartboostSetttings.SetAndroidAppId(QuickAds.instance.ChartboostAndroidId);
            chartboostSetttings.androidAppSecret = QuickAds.instance.ChartboostAndroidSign;
            chartboostSetttings.SetAndroidAppSecret(QuickAds.instance.ChartboostAndroidSign);

            chartboostSetttings.iOSAppId = QuickAds.instance.ChartboostIOSId;
            chartboostSetttings.SetIOSAppId(QuickAds.instance.ChartboostIOSId);
            chartboostSetttings.iOSAppSecret = QuickAds.instance.ChartboostIOSSign;
            chartboostSetttings.SetIOSAppSecret(QuickAds.instance.ChartboostIOSSign);

            chartboostSetttings.amazonAppId = QuickAds.instance.ChartboostAmazonId;
            chartboostSetttings.SetAmazonAppId(QuickAds.instance.ChartboostAmazonId);
            chartboostSetttings.amazonAppSecret = QuickAds.instance.ChartboostAmazonSign;
            chartboostSetttings.SetAmazonAppSecret(QuickAds.instance.ChartboostAmazonSign);

            QuickAds.instance.ReportOnScreen("Chartboost initializing");
        }
        void SetAndroidIds(CBSettings settings, string appId, string appSecret)
        {
            settings.amazonAppId     = appId;
            settings.amazonAppSecret = appSecret;

            settings.SetAmazonAppId(appId);
            settings.SetAmazonAppSecret(appSecret);



            settings.androidAppId     = appId;
            settings.androidAppSecret = appSecret;

            settings.SetAndroidAppId(appId);
            settings.SetAndroidAppSecret(appSecret);
        }