Skip to content

Commit fbaa242

Browse files
committed
Add editor exception
1 parent a7c8e65 commit fbaa242

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/Adjust.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public static void appDidLaunch(string appToken, AdjustUtil.AdjustEnvironment en
3939
Debug.Log("adjust: warning, SDK already started. Restarting");
4040
}
4141

42-
#if UNITY_ANDROID
42+
#if UNITY_EDITOR
43+
Adjust.instance = null;
44+
#elif UNITY_ANDROID
4345
Adjust.instance = new AdjustAndroid();
4446
#elif UNITY_IOS
4547
Adjust.instance = new AdjustIOS();

0 commit comments

Comments
 (0)