for (int i = 0; i < playersimages_team_1.Length; i++)
{
foreach(Player player in playerlist)
{
SetChampionImg(player,playersimages_team_1[i]);
}
}
There is no connection between the inner and outer loop...
The inner loop pushes all the players (one-by-one) to
playersimages_team_1[i], overwriting the previous, as
i iterates only in the outer loop, after the inner ran out...
Something like this may solve the problem:
int i = 0;
foreach(Player player in playerlist)
{
SetChampionImg(player,playersimages_team_1[i]);
i++;
}