Example #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);
     }
 }
Example #2
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);
            }
        }
Example #3
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);
            }
        }
Example #4
0
 private void Awake()
 {
     if (!IsEditor())
     {
         UnityEngine.Object.DontDestroyOnLoad(base.transform.gameObject);
         if (!startManually)
         {
             AdjustConfig adjustConfig = new AdjustConfig(appToken, environment, logLevel == AdjustLogLevel.Suppress);
             adjustConfig.setLogLevel(logLevel);
             adjustConfig.setSendInBackground(sendInBackground);
             adjustConfig.setEventBufferingEnabled(eventBuffering);
             adjustConfig.setLaunchDeferredDeeplink(launchDeferredDeeplink);
             start(adjustConfig);
         }
     }
 }
Example #5
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);
     }
 }
Example #6
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);
                }
            }
        }