Пример #1
0
 // Token: 0x06000071 RID: 113 RVA: 0x00003E18 File Offset: 0x00002218
 private void Awake()
 {
     if (Adjust.instance != null)
     {
         return;
     }
     UnityEngine.Object.DontDestroyOnLoad(base.transform.gameObject);
     if (!this.startManually)
     {
         AdjustConfig adjustConfig = new AdjustConfig(this.appToken, this.environment, this.logLevel == AdjustLogLevel.Suppress);
         adjustConfig.setLogLevel(this.logLevel);
         adjustConfig.setSendInBackground(this.sendInBackground);
         adjustConfig.setEventBufferingEnabled(this.eventBuffering);
         adjustConfig.setLaunchDeferredDeeplink(this.launchDeferredDeeplink);
         if (this.printAttribution)
         {
             adjustConfig.setEventSuccessDelegate(new Action <AdjustEventSuccess>(this.EventSuccessCallback), "Adjust");
             adjustConfig.setEventFailureDelegate(new Action <AdjustEventFailure>(this.EventFailureCallback), "Adjust");
             adjustConfig.setSessionSuccessDelegate(new Action <AdjustSessionSuccess>(this.SessionSuccessCallback), "Adjust");
             adjustConfig.setSessionFailureDelegate(new Action <AdjustSessionFailure>(this.SessionFailureCallback), "Adjust");
             adjustConfig.setDeferredDeeplinkDelegate(new Action <string>(this.DeferredDeeplinkCallback), "Adjust");
             adjustConfig.setAttributionChangedDelegate(new Action <AdjustAttribution>(this.AttributionChangedCallback), "Adjust");
         }
         Adjust.start(adjustConfig);
     }
 }
Пример #2
0
        void Awake()
        {
            if (Adjust.instance != null)
            {
                return;
            }

            DontDestroyOnLoad(transform.gameObject);

            if (!this.startManually)
            {
                AdjustConfig adjustConfig = new AdjustConfig(this.appToken, this.environment);
                adjustConfig.setLogLevel(this.logLevel);
                adjustConfig.setEventBufferingEnabled(eventBuffering);

                if (printAttribution)
                {
                    adjustConfig.setEventSuccessDelegate(EventSuccessCallback);
                    adjustConfig.setEventFailureDelegate(EventFailureCallback);
                    adjustConfig.setSessionSuccessDelegate(SessionSuccessCallback);
                    adjustConfig.setSessionFailureDelegate(SessionFailureCallback);
                    adjustConfig.setAttributionChangedDelegate(AttributionChangedCallback);
                }

                Adjust.start(adjustConfig);
            }
        }
Пример #3
0
        void Awake()
        {
            appToken = TinySauce.getToken();


            if (appToken == "")
            {
                throw new MissingFieldException("Go here", new Exception("No Adjust token found please add it to your tinysauce settings"));
                Debug.Break();
                return;
            }
            if (IsEditor())
            {
                return;
            }

            DontDestroyOnLoad(transform.gameObject);

            if (!this.startManually)
            {
                AdjustConfig adjustConfig = new AdjustConfig(this.appToken, this.environment, (this.logLevel == AdjustLogLevel.Suppress));
                adjustConfig.setLogLevel(this.logLevel);
                adjustConfig.setSendInBackground(this.sendInBackground);
                adjustConfig.setEventBufferingEnabled(this.eventBuffering);
                adjustConfig.setLaunchDeferredDeeplink(this.launchDeferredDeeplink);
                Adjust.start(adjustConfig);
            }
        }
Пример #4
0
        void Awake()
        {
            if (Adjust.instance != null)
            {
                return;
            }

            DontDestroyOnLoad(transform.gameObject);

            if (!this.startManually)
            {
                AdjustConfig adjustConfig;

                adjustConfig = new AdjustConfig(this.appToken, this.environment, (this.logLevel == AdjustLogLevel.Suppress));

                adjustConfig.setLogLevel(this.logLevel);
                adjustConfig.setSendInBackground(this.sendInBackground);
                adjustConfig.setEventBufferingEnabled(this.eventBuffering);
                adjustConfig.setLaunchDeferredDeeplink(this.launchDeferredDeeplink);

                if (printAttribution)
                {
                    adjustConfig.setEventSuccessDelegate(EventSuccessCallback);
                    adjustConfig.setEventFailureDelegate(EventFailureCallback);
                    adjustConfig.setSessionSuccessDelegate(SessionSuccessCallback);
                    adjustConfig.setSessionFailureDelegate(SessionFailureCallback);
                    adjustConfig.setDeferredDeeplinkDelegate(DeferredDeeplinkCallback);
                    adjustConfig.setAttributionChangedDelegate(AttributionChangedCallback);
                }

                Adjust.start(adjustConfig);
            }
        }
Пример #5
0
        public void StartWithCurrentParameters()
        {
            AdjustConfig adjustConfig = new AdjustConfig(this.appToken, this.environment);

            adjustConfig.setLogLevel(this.logLevel);
            adjustConfig.setEventBufferingEnabled(eventBuffering);

            if (printAttribution)
            {
                adjustConfig.setAttributionChangedDelegate(responseDelegate);
            }

            Adjust.start(adjustConfig);
        }
Пример #6
0
 private void Awake()
 {
     if (Adjust.IsEditor())
     {
         return;
     }
     UnityEngine.Object.DontDestroyOnLoad(base.transform.gameObject);
     if (!this.startManually)
     {
         AdjustConfig adjustConfig = new AdjustConfig(this.appToken, this.environment, this.logLevel == AdjustLogLevel.Suppress);
         adjustConfig.setLogLevel(this.logLevel);
         adjustConfig.setSendInBackground(this.sendInBackground);
         adjustConfig.setEventBufferingEnabled(this.eventBuffering);
         adjustConfig.setLaunchDeferredDeeplink(this.launchDeferredDeeplink);
         Adjust.start(adjustConfig);
     }
 }
Пример #7
0
        void Awake()
        {
            if (!Application.isEditor)
            {
                DontDestroyOnLoad(transform.gameObject);

                if (!this.startManually)
                {
                    AdjustConfig adjustConfig = new AdjustConfig(this.appToken, this.environment, (this.logLevel == AdjustLogLevel.Suppress));
                    adjustConfig.setLogLevel(this.logLevel);
                    adjustConfig.setSendInBackground(this.sendInBackground);
                    adjustConfig.setEventBufferingEnabled(this.eventBuffering);
                    adjustConfig.setLaunchDeferredDeeplink(this.launchDeferredDeeplink);
                    Adjust.start(adjustConfig);
                }
            }
        }
Пример #8
0
        void Awake()
        {
            DontDestroyOnLoad(transform.gameObject);

            if (!this.startManually)
            {
                AdjustConfig adjustConfig = new AdjustConfig(this.appToken, this.environment);
                adjustConfig.setLogLevel(this.logLevel);
                adjustConfig.setEventBufferingEnabled(eventBuffering);

                if (printAttribution)
                {
                    adjustConfig.setAttributionChangedDelegate(responseDelegate);
                }

                Adjust.start(adjustConfig);
            }
        }