private void UpdateRoleBarPos(long uid) { UIRoleStateBar roleBar = GetRoleBar(uid); if (null != roleBar) { roleBar.UpdatePositon(); } }
private void DoLateUpdateChangePos() { if (m_lstChangePosIds.Count > 0) { UIRoleStateBar roleStateBar = null; for (int i = 0, max = m_lstChangePosIds.Count; i < max; i++) { if (!m_dicActiveRoleStateBar.TryGetValue(m_lstChangePosIds[i], out roleStateBar)) { continue; } roleStateBar.UpdatePositon(); } m_lstChangePosIds.Clear(); } }