示例#1
0
    private void OnDeleteMember(params object[] args)
    {
        RoleData     role     = GameManager.Instance.GetRoleData();
        Http_MsgBase mainPage = NetWorkManager.Instance.CreateGetMsg <Http_MsgBase>(GameConst._mainPage,
                                                                                    GameManager.Instance.GetSendInfoStringList <Send_HandleManager>(role.id.Value, role.token.Value, clubId, textId.text));

        if (mainPage != null && mainPage.code == 0)
        {
            role.DeleteClubMember(clubId, textId.text);
            this.SetActive(false);
        }
    }
示例#2
0
    public void OnClickJoin(object[] args)
    {
        RoleData     role   = GameManager.Instance.GetRoleData();
        Http_MsgBase myClub = NetWorkManager.Instance.CreateGetMsg <Http_MsgBase>(GameConst._applyClub,
                                                                                  GameManager.Instance.GetSendInfoStringList <Send_RequestClub>(role.id.Value, role.token.Value, curClubId));

        if (myClub != null && myClub.code == 0)
        {
            role.AddRequestClub(curClubId);
        }

        handle.gameObject.SetActive(false);
        result.gameObject.SetActive(true);
    }
示例#3
0
    private void OnSetManager(params object[] args)
    {
        RoleData     role     = GameManager.Instance.GetRoleData();
        Http_MsgBase mainPage = NetWorkManager.Instance.CreateGetMsg <Http_MsgBase>(GameConst._mainPage,
                                                                                    GameManager.Instance.GetSendInfoStringList <Send_DeleteMember>(role.id.Value, role.token.Value, clubId, textId.text, isManager ? "del" : "add"));

        if (mainPage != null && mainPage.code == 0)
        {
            isManager = !isManager;

            textManager.text   = isManager ? "管理员" : "";
            btnSetManager.text = isManager ? "删除管理员" : "设为管理员";
        }
    }