private void OnClickFriend(bool check)
 {
     if (check)
     {
         if (this.currentInviteType == ButtonInviteType.friend)
         {
             return;
         }
         this.currentInviteType = ButtonInviteType.friend;
         this.InitUIData();
     }
 }
    private void SetButton()
    {
        string           text             = "#687690";
        string           text2            = "#ffffff";
        string           text3            = string.Empty;
        string           text4            = string.Empty;
        ButtonInviteType buttonInviteType = this.currentInviteType;

        if (buttonInviteType != ButtonInviteType.friend)
        {
            if (buttonInviteType == ButtonInviteType.guild)
            {
                text3 = text2;
                text4 = text;
            }
        }
        else
        {
            text4 = text2;
            text3 = text;
        }
        base.FindTransform("friendText").GetComponent <Text>().set_text(string.Format("<color={0}> 在线好友</color>", text4));
        base.FindTransform("guildText").GetComponent <Text>().set_text(string.Format("<color={0}> 公会成员</color>", text3));
    }