1- // version: 5.0.0
1+ // version: 5.0.1
22
33using UnityEngine ;
44using System . Collections . Generic ;
@@ -164,7 +164,7 @@ public static class TalkingDataSDK
164164#endif
165165
166166 [ DllImport ( "__Internal" ) ]
167- private static extern void TDOnEvent ( string eventId , double eventValue , string parameters ) ;
167+ private static extern void TDOnEvent ( string eventId , string parameters ) ;
168168
169169 [ DllImport ( "__Internal" ) ]
170170 private static extern void TDSetGlobalKV ( string key , string strVal , double numVal ) ;
@@ -217,8 +217,6 @@ public static void OnPause()
217217 if ( talkingdataClass != null )
218218 {
219219 talkingdataClass . CallStatic ( "onPause" , GetCurrentActivity ( ) ) ;
220- talkingdataClass = null ;
221- unityPlayerClass = null ;
222220 }
223221#endif
224222 }
@@ -865,7 +863,7 @@ public static void OnTrialFinished(string profileId, string content)
865863 }
866864#endif
867865
868- public static void OnEvent ( string eventId , double eventValue , Dictionary < string , object > parameters )
866+ public static void OnEvent ( string eventId , Dictionary < string , object > parameters )
869867 {
870868 if ( Application . platform != RuntimePlatform . OSXEditor && Application . platform != RuntimePlatform . WindowsEditor )
871869 {
@@ -886,12 +884,12 @@ public static void OnEvent(string eventId, double eventValue, Dictionary<string,
886884 : new AndroidJavaObject ( "java.lang.Double" , "" + kvp . Value ) ;
887885 AndroidJNI . CallObjectMethod ( map . GetRawObject ( ) , method_Put , AndroidJNIHelper . CreateJNIArgArray ( args ) ) ;
888886 }
889- talkingdataClass . CallStatic ( "onEvent" , GetCurrentActivity ( ) , eventId , eventValue , map ) ;
887+ talkingdataClass . CallStatic ( "onEvent" , GetCurrentActivity ( ) , eventId , map ) ;
890888 map . Dispose ( ) ;
891889 }
892890 else
893891 {
894- talkingdataClass . CallStatic ( "onEvent" , GetCurrentActivity ( ) , eventId , eventValue , null ) ;
892+ talkingdataClass . CallStatic ( "onEvent" , GetCurrentActivity ( ) , eventId , null ) ;
895893 }
896894 }
897895#endif
@@ -919,11 +917,11 @@ public static void OnEvent(string eventId, double eventValue, Dictionary<string,
919917 }
920918 parameterStr = parameterStr . TrimEnd ( ',' ) ;
921919 parameterStr += "}" ;
922- TDOnEvent ( eventId , eventValue , parameterStr ) ;
920+ TDOnEvent ( eventId , parameterStr ) ;
923921 }
924922 else
925923 {
926- TDOnEvent ( eventId , eventValue , null ) ;
924+ TDOnEvent ( eventId , null ) ;
927925 }
928926#endif
929927 }
0 commit comments