1
- // version: 5.0.0
1
+ // version: 5.0.1
2
2
3
3
using UnityEngine ;
4
4
using System . Collections . Generic ;
@@ -164,7 +164,7 @@ public static class TalkingDataSDK
164
164
#endif
165
165
166
166
[ DllImport ( "__Internal" ) ]
167
- private static extern void TDOnEvent ( string eventId , double eventValue , string parameters ) ;
167
+ private static extern void TDOnEvent ( string eventId , string parameters ) ;
168
168
169
169
[ DllImport ( "__Internal" ) ]
170
170
private static extern void TDSetGlobalKV ( string key , string strVal , double numVal ) ;
@@ -217,8 +217,6 @@ public static void OnPause()
217
217
if ( talkingdataClass != null )
218
218
{
219
219
talkingdataClass . CallStatic ( "onPause" , GetCurrentActivity ( ) ) ;
220
- talkingdataClass = null ;
221
- unityPlayerClass = null ;
222
220
}
223
221
#endif
224
222
}
@@ -865,7 +863,7 @@ public static void OnTrialFinished(string profileId, string content)
865
863
}
866
864
#endif
867
865
868
- public static void OnEvent ( string eventId , double eventValue , Dictionary < string , object > parameters )
866
+ public static void OnEvent ( string eventId , Dictionary < string , object > parameters )
869
867
{
870
868
if ( Application . platform != RuntimePlatform . OSXEditor && Application . platform != RuntimePlatform . WindowsEditor )
871
869
{
@@ -886,12 +884,12 @@ public static void OnEvent(string eventId, double eventValue, Dictionary<string,
886
884
: new AndroidJavaObject ( "java.lang.Double" , "" + kvp . Value ) ;
887
885
AndroidJNI . CallObjectMethod ( map . GetRawObject ( ) , method_Put , AndroidJNIHelper . CreateJNIArgArray ( args ) ) ;
888
886
}
889
- talkingdataClass . CallStatic ( "onEvent" , GetCurrentActivity ( ) , eventId , eventValue , map ) ;
887
+ talkingdataClass . CallStatic ( "onEvent" , GetCurrentActivity ( ) , eventId , map ) ;
890
888
map . Dispose ( ) ;
891
889
}
892
890
else
893
891
{
894
- talkingdataClass . CallStatic ( "onEvent" , GetCurrentActivity ( ) , eventId , eventValue , null ) ;
892
+ talkingdataClass . CallStatic ( "onEvent" , GetCurrentActivity ( ) , eventId , null ) ;
895
893
}
896
894
}
897
895
#endif
@@ -919,11 +917,11 @@ public static void OnEvent(string eventId, double eventValue, Dictionary<string,
919
917
}
920
918
parameterStr = parameterStr . TrimEnd ( ',' ) ;
921
919
parameterStr += "}" ;
922
- TDOnEvent ( eventId , eventValue , parameterStr ) ;
920
+ TDOnEvent ( eventId , parameterStr ) ;
923
921
}
924
922
else
925
923
{
926
- TDOnEvent ( eventId , eventValue , null ) ;
924
+ TDOnEvent ( eventId , null ) ;
927
925
}
928
926
#endif
929
927
}
0 commit comments