コード例 #1
0
ファイル: Adjust.cs プロジェクト: Ben0hongmoe/unity_sdk
        public void GetNativeAttribution(string attributionData)
        {
            if (!Application.isEditor)
            {
                if (Adjust.attributionChangedDelegate == null)
                {
                    Debug.Log("Adjust: Attribution changed delegate was not set.");
                    return;
                }

                var attribution = new AdjustAttribution(attributionData);
                Adjust.attributionChangedDelegate(attribution);
            }
        }
コード例 #2
0
ファイル: Adjust.cs プロジェクト: laijingquan/SandBox2018
        // Token: 0x06000083 RID: 131 RVA: 0x00004174 File Offset: 0x00002574
        public void GetNativeAttribution(string attributionData)
        {
            if (Adjust.instance == null)
            {
                Debug.Log("adjust: SDK not started. Start it manually using the 'start' method.");
                return;
            }
            if (Adjust.attributionChangedDelegate == null)
            {
                Debug.Log("adjust: Attribution changed delegate was not set.");
                return;
            }
            AdjustAttribution obj = new AdjustAttribution(attributionData);

            Adjust.attributionChangedDelegate(obj);
        }
コード例 #3
0
ファイル: Adjust.cs プロジェクト: MaydayAyu/unity_sdk
        public static void runAttributionChangedDictionary(Dictionary <string, string> dicAttributionData)
        {
            if (instance == null)
            {
                Debug.Log(Adjust.errorMessage);
                return;
            }
            if (Adjust.attributionChangedDelegate == null)
            {
                Debug.Log("adjust: Attribution changed delegate was not set.");
                return;
            }
            var attribution = new AdjustAttribution(dicAttributionData);

            Adjust.attributionChangedDelegate(attribution);
        }
コード例 #4
0
ファイル: Adjust.cs プロジェクト: Steven12232/CircRunner
// GameGrowth update: Setting iOS "Native" methods as static to be able to access without instance
#if UNITY_IOS
        public static void GetNativeAttribution(string attributionData)
        {
            if (IsEditor())
            {
                return;
            }

            if (Adjust.attributionChangedDelegate == null)
            {
                Debug.Log("[Adjust]: Attribution changed delegate was not set.");
                return;
            }

            var attribution = new AdjustAttribution(attributionData);

            Adjust.attributionChangedDelegate(attribution);
        }
コード例 #5
0
ファイル: Adjust.cs プロジェクト: tatsuaki/MyUnityPush
        public void GetNativeAttribution(string attributionData)
        {
            if (instance == null)
            {
                Debug.Log(Adjust.errorMessage);
                return;
            }

            if (Adjust.attributionChangedDelegate == null)
            {
                Debug.Log("adjust: Attribution changed delegate was not set.");
                return;
            }

            var attribution = new AdjustAttribution(attributionData);

            Adjust.attributionChangedDelegate(attribution);
        }