void LateUpdate()
{
// late update the avatars
if (lateUpdateAvatars)
{
foreach (AvatarController controller in avatarControllers)
{
//int userIndex = controller ? controller.playerIndex : -1;
Int64 userId = controller ? controller.playerId : 0;
//if((userIndex >= 0) && (userIndex < alUserIds.Count))
if (userId != 0 && dictUserIdToIndex.ContainsKey(userId))
{
//Int64 userId = alUserIds[userIndex];
controller.UpdateAvatar(userId);
}
}
}
}