Example #1
0
    public void OpenProfileDetails(string userId)
    {
        m_userId = userId;

        m_profileDetailsTopLevel.SetActive(true);
        m_profileDescriptionUpdateTopLevel.SetActive(false);

        bool isCurrentUser = m_user.IsCurrentUser(m_userId);

        m_followButtonObject.SetActive(!isCurrentUser);
        m_editProfileButtonObject.SetActive(isCurrentUser);

        m_handleObject.GetComponentInChildren <Text>().text             = "";
        m_followerCountObject.GetComponentInChildren <Text>().text      = "";
        m_followingCountObject.GetComponentInChildren <Text>().text     = "";
        m_profileDescriptionObject.GetComponentInChildren <Text>().text = "";

        m_coroutineQueue.EnqueueAction(GetUserDetails());

        m_listUsers.CloseListUsers();
    }