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); }
// 点击战友头像 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); }
FriendItem m_frienditem; //当前好友信息 static public UIRepresentativeCard GetInstance() { UIRepresentativeCard self = UIManager.Singleton.GetUIWithoutLoad <UIRepresentativeCard>(); if (self != null) { return(self); } self = UIManager.Singleton.LoadUI <UIRepresentativeCard>("UI/UIRepresentativeCard", UIManager.Anchor.Center); return(self); }
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); }