Hi friends,
I have a little problem with this code, I want to show the role of each player, i mean i want to show for each player connected the role it has been assigned, but the problem with my code, it showed to all the players the role of last connected: '(
PS: it’s an online game, every time a player logs in he is assigned a role automatically
if(Tour)
for(int i = 0; i < GameObject.FindGameObjectsWithTag("Player").Length; i++)
{
Moneur.text = GameObject.FindGameObjectsWithTag("Player")[i].GetComponent<PlayerControler>().Role;
}
Tour = false;