Exemplo n.º 1
0
    private void UpdataTabBagItems()
    {
        int num = 0;

        for (int i = 0; i < memberItems.Length; i++)
        {
            MemberCell bagCell = memberItems[i].GetComponent <MemberCell>();
            bagCell.Member = null;
            memberItems[i].SetActive(false);
        }
        if (CurPage > 0)
        {
            num = (CurPage - 1) * 7;
        }
        else
        {
            num = (CurPage) * 7;
        }
        //int index = 0;
        for (int i = 0; i < 7; i++)
        {
            //index = num+i;
            if ((num + i) < GuildSystem.GuildMembers.Count)
            {
                memberItems[i].SetActive(true);
                MemberCell bagCell = memberItems[i].GetComponent <MemberCell>();
                bagCell.Member = GuildSystem.GuildMembers[num + i];
                UIManager.SetButtonEventHandler(memberItems[i].gameObject, EnumButtonEvent.OnClick, OnClickmember, bagCell.Member.roleId_, 0);
            }
        }
    }
Exemplo n.º 2
0
    private void OnClickmember(ButtonScript obj, object args, int param1, int param2)
    {
        if (GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId).roleId_ == param1)
        {
            return;
        }
        tipsObj.SetActive(true);
        OperatingTips opt   = tipsObj.GetComponent <OperatingTips> ();
        MemberCell    mcell = obj.GetComponent <MemberCell>();

        opt.Member = mcell.Member;
        opt.jiantou.transform.position = new Vector3(opt.jiantou.transform.position.x, obj.gameObject.transform.position.y, 0f);
    }