示例#1
0
        private static void IronSourceImpressionHandler(string json)
        {
#if gameanalytics_ironsource_enabled
            // Remove potential label/tag from version number
            string v     = IronSource.pluginVersion();
            int    index = v.IndexOf("-");
            if (index >= 0)
            {
                v = v.Substring(0, index);
            }

            GA.CallStatic("addImpressionIronSourceEvent", v, json);
#endif
        }
示例#2
0
        private static void IronSourceImpressionHandler(string json)
        {
            if (!string.IsNullOrEmpty(json))
            {
#if gameanalytics_ironsource_enabled
                // Remove potential label/tag from version number
                string v     = IronSource.pluginVersion();
                int    index = v.IndexOf("-");
                if (index >= 0)
                {
                    v = v.Substring(0, index);
                }

                addImpressionEvent("ironsource", v, json);
#endif
            }
        }
示例#3
0
    public override void Init()
    {
#if IRONSOURCE
        IronSource.Agent.init(appKey, IronSourceAdUnits.REWARDED_VIDEO, IronSourceAdUnits.INTERSTITIAL, IronSourceAdUnits.BANNER);
        IronSource.Agent.shouldTrackNetworkState(true);
        IronSource.Agent.setConsent(true);
#if DEBUG
        IronSource.Agent.validateIntegration();
        IronSource.Agent.setAdaptersDebug(true);
        LDebug.Log(IronSource.pluginVersion());
        LDebug.Log(IronSource.unityVersion());
#endif
#endif

        LitFramework.LitTool.LitTool.DelayPlayFunction(0.1f, () =>
        {
            //if (AdManager.Instance.UseAds)
            //    CreateBanner();
            CreateInterstitial();
            CreateRewarded();
        });
    }
示例#4
0
 public void init(string appKey, params string[] adUnits)
 {
     CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     CFInitWithAdUnits(appKey, adUnits);
 }
示例#5
0
 public void init(string appKey)
 {
     CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     CFInit(appKey);
 }
示例#6
0
 public void initISDemandOnly(string appKey, params string[] adUnits)
 {
     CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
     CFInitISDemandOnly(appKey, adUnits);
 }
示例#7
0
 public void init(string appKey)
 {
     CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
     CFInit(appKey);
 }
示例#8
0
 public void init(string appKey, params string[] adUnits)
 {
     getBridge().Call("setPluginData", "Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     getBridge().Call("init", appKey, adUnits);
 }
 private void Start()
 {
     Text = GameObject.Find("PluginVersionText");
     Text.GetComponent <Text>().text = IronSource.pluginVersion();
 }
示例#10
0
 public void init(string appKey)
 {
     getBridge().Call("setPluginData", "Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
     getBridge().Call("init", appKey);
 }
示例#11
0
 public void initISDemandOnly(string appKey, params string[] adUnits)
 {
     getBridge().Call("setPluginData", "Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
     getBridge().Call("initISDemandOnly", appKey, adUnits);
 }
示例#12
0
 // Use this for initialization
 void Start()
 {
     Text = GameObject.Find("PluginVersionText");
     Text.GetComponent <UnityEngine.UI.Text> ().text = IronSource.pluginVersion();
 }