public void RemoveFriend() { ManualResetEvent evt = new ManualResetEvent(false); var committed = false; var message = NFriendRemoveMessage.Default(FriendUserId); client.Send(message, (bool completed) => { committed = completed; evt.Set(); }, _ => { evt.Set(); }); evt.WaitOne(1000, false); Assert.IsTrue(committed); }
public void DeleteFriend() { var friend = StateManager.Instance.Friends[_friendSelectorDropdown.value]; NakamaManager.Instance.FriendRemove(NFriendRemoveMessage.Default(friend.Id)); }