private void Awake() { if (!this.startManually) { this.environment = AdjustUtil.AdjustEnvironment.Production; string text = string.Empty; if (Application.platform != RuntimePlatform.Android) { return; } text = "ps77gcz96hls"; Adjust.appDidLaunch(text, this.environment, this.logLevel, this.eventBuffering); } }
public static void appDidLaunch(string appToken, AdjustUtil.AdjustEnvironment environment, AdjustUtil.LogLevel logLevel, bool eventBuffering) { if (Adjust.instance != null) { Debug.Log("adjust: warning, SDK already started. Restarting"); } Adjust.instance = new AdjustAndroid(); if (Adjust.instance == null) { Debug.Log("adjust: SDK can only be used in Android, iOS, Windows Phone 8 or Windows Store apps"); return; } Adjust.instance.appDidLaunch(appToken, environment, "unity3.3.0", logLevel, eventBuffering); GameObject gameObject = GameObject.Find("OmniataManager"); if (gameObject == null) { return; } OmniataComponent component = gameObject.GetComponent <OmniataComponent>(); if (component == null) { return; } Omniata omniataInstance = component.GetOmniataInstance(); if (omniataInstance == null) { return; } if (!omniataInstance.Initialized) { return; } string eventToken = string.Empty; eventToken = "fyn6ku"; Adjust.trackEvent(eventToken, new Dictionary <string, string> { { "user", omniataInstance.UserID }, { "api_key", omniataInstance.ApiKey } }); }
public void appDidLaunch(string appToken, AdjustUtil.AdjustEnvironment environment, string sdkPrefix, AdjustUtil.LogLevel logLevel, bool eventBuffering) { string text = environment.ToString().ToLower(); string text2 = logLevel.ToString().ToLower(); this.ajcAdjust.CallStatic("appDidLaunch", new object[] { this.ajoCurrentActivity, appToken, text, text2, eventBuffering }); this.ajcAdjust.CallStatic("setSdkPrefix", new object[] { sdkPrefix }); this.onResume(); }