Esempio n. 1
0
        public void JoinGroup()
        {
            var group = StateManager.Instance.SearchedGroups[_allGroupsDropdown.value];
            var msg   = NGroupJoinMessage.Default(group.Id);

            NakamaManager.Instance.GroupJoin(msg);
        }
Esempio n. 2
0
 public void GroupJoin(NGroupJoinMessage message, bool refreshList = true)
 {
     _client.Send(message, done =>
     {
         if (refreshList)
         {
             JoinedGroupsList(NGroupsSelfListMessage.Default());
         }
     }, ErrorHandler);
 }
Esempio n. 3
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);
        }