public void RequestEncryptedAppTicket(byte[] dataToInclude, OnUserEncryptedAppTicketCreated onUserEncryptedAppTicketCreated) { this._onUserEncryptedAppTicketCreated = onUserEncryptedAppTicketCreated; IntPtr num = Marshal.AllocHGlobal(dataToInclude.Length); Marshal.Copy(dataToInclude, 0, num, dataToInclude.Length); CommunityExpress.Instance.AddUserGetEncryptedAppTicketCallback(User.SteamUnityAPI_SteamUser_RequestEncryptedAppTicket(this._user, num, dataToInclude.Length), new OnUserGetEncryptedAppTicketFromSteam(this.OnGetEncryptedAppTicketFromSteam)); Marshal.FreeHGlobal(num); }
public void RequestEncryptedAppTicket(byte[] dataToInclude, OnUserEncryptedAppTicketCreated onUserEncryptedAppTicketCreated) { this._onUserEncryptedAppTicketCreated = onUserEncryptedAppTicketCreated; IntPtr num = Marshal.AllocHGlobal(dataToInclude.Length); Marshal.Copy(dataToInclude, 0, num, dataToInclude.Length); CommunityExpress.Instance.AddUserGetEncryptedAppTicketCallback(User.SteamUnityAPI_SteamUser_RequestEncryptedAppTicket(this._user, num, dataToInclude.Length), new OnUserGetEncryptedAppTicketFromSteam(this.OnGetEncryptedAppTicketFromSteam)); Marshal.FreeHGlobal(num); }