public void SelectPlayerListItem(PlayerListItemLogic selectItem) { if (null == selectItem) { if (m_ButtonWindow != null) { m_ButtonWindow.SetPlayerListItemInfo(GlobeVar.INVALID_GUID, GlobeVar.INVALID_ID, "", PlayerListItemLogic.PlayerListItemType.Invalid); } m_SelectPlayerItem = null; // if (m_TeamMemberSceneInfo != null) // { // m_TeamMemberSceneInfo.SetActive(false); // } return; } if (m_SelectPlayerItem != null) { m_SelectPlayerItem.OnCancelSelectItem(); } m_SelectPlayerItem = selectItem; m_SelectPlayerItem.OnSelectItem(); if (m_ButtonWindow != null) { m_ButtonWindow.SetPlayerListItemInfo(m_SelectPlayerItem.GUID, m_SelectPlayerItem.TeamID, m_SelectPlayerItem.m_PlayerName, m_SelectPlayerItem.ItemType); } UpdateTeamMemberScenePos(selectItem.TeamPosIndex); }
public void SelectPlayerListItem(PlayerListItemLogic selectItem) { if (null == selectItem) { if (m_ButtonWindow != null) { m_ButtonWindow.SetPlayerListItemInfo(GlobeVar.INVALID_GUID, GlobeVar.INVALID_ID, "", PlayerListItemLogic.PlayerListItemType.Invalid); } m_SelectPlayerItem = null; return; } if (m_SelectPlayerItem != null) { m_SelectPlayerItem.OnCancelSelectItem(); } m_SelectPlayerItem = selectItem; m_SelectPlayerItem.OnSelectItem(); if (m_ButtonWindow != null) { m_ButtonWindow.SetPlayerListItemInfo(selectItem.GUID, selectItem.TeamID, selectItem.m_PlayerName, selectItem.ItemType); } }