public void JoinGroup() { var group = StateManager.Instance.SearchedGroups[_allGroupsDropdown.value]; var msg = NGroupJoinMessage.Default(group.Id); NakamaManager.Instance.GroupJoin(msg); }
public void GroupJoin(NGroupJoinMessage message, bool refreshList = true) { _client.Send(message, done => { if (refreshList) { JoinedGroupsList(NGroupsSelfListMessage.Default()); } }, ErrorHandler); }
public void GroupJoin() { ManualResetEvent evt = new ManualResetEvent(false); INError error = null; var message = NGroupJoinMessage.Default(FriendGroup.Id); client.Send(message, (bool completed) => { evt.Set(); }, (INError err) => { error = err; evt.Set(); }); evt.WaitOne(1000, false); // The invitation will be sent to join the group. Assert.IsNull(error); }