Пример #1
0
        public void JoinGroup()
        {
            var group = StateManager.Instance.SearchedGroups[_allGroupsDropdown.value];
            var msg   = NGroupJoinMessage.Default(group.Id);

            NakamaManager.Instance.GroupJoin(msg);
        }
Пример #2
0
        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);
        }