Пример #1
0
    // 点击战友头像
    void OnClickHelpPic(object obj, EventArgs e)
    {
        GameObject gameObj = (GameObject)obj;
        Parma      param   = gameObj.transform.parent.GetComponent <Parma>();

        UIRepresentativeCard.GetInstance().ShowGUID(param.m_id, UIRepresentativeCard.ENOptType.enRepreType);
    }
Пример #2
0
    void OnClickLongPressPlayer(object sender, EventArgs e)
    {
        GameObject gameObj = (GameObject)sender;
        Parma      param   = gameObj.transform.parent.GetComponent <Parma>();

        UIRepresentativeCard.GetInstance().ShowGUID(param.m_id, UIRepresentativeCard.ENOptType.enFriendType);
    }
Пример #3
0
    void OnFriendListClickLongPressPlayer(object sender, EventArgs e)
    {
        GameObject gameObj = (GameObject)sender;
        Parma      param   = gameObj.transform.parent.GetComponent <Parma>();
        //UIRepresentativeCard.GetInstance().ShowGUID(param.m_id, UIRepresentativeCard.ENOptType.enFriendType);
        FriendItem tmpFriendItem = null;

        if (FriendList.Singleton.m_sortFriendList != null)
        {
            tmpFriendItem = (FriendItem)FriendList.Singleton.m_sortFriendList[param.m_id];
        }
        else
        {
            tmpFriendItem = (FriendItem)FriendList.Singleton.m_friendInfoList[param.m_id];
        }
        UIRepresentativeCard.GetInstance().ShowFriendPlayerInfo(tmpFriendItem);
    }