Esempio n. 1
0
    void OpenUserList()
    {
        currentUserName = inputUserName.text;
        SendBirdSDK.Login(userId, currentUserName);

        mEventProcessor.QueueEvent(new Action(() => {
            userListPanel.SetActive(true);
        }));
        mUserListQuery           = SendBirdSDK.QueryUserList();
        mUserListQuery.OnResult += (sender, e) => {
            if (e.Exception != null)
            {
                Debug.Log(e.Exception.StackTrace);
            }
            else
            {
                OnQueryUserList(e.Users);
            }
        };
        mUserListQuery.Next();
    }