private void SetUserId() { if (!Service.IsSet <CurrentPlayer>()) { return; } string playerId = Service.Get <CurrentPlayer>().PlayerId; if (!string.IsNullOrEmpty(playerId)) { TapjoyPlugin.SetUserID(Service.Get <CurrentPlayer>().PlayerId); TapjoyManager.isUserIDSet = true; } }
public unsafe static long $Invoke82(long instance, long *args) { TapjoyPlugin.SetUserID(Marshal.PtrToStringUni(*(IntPtr *)args)); return(-1L); }