public void SetUserInfo(UserInfo info) { userInfo = info; ClientInRoom.players.Add(info.id, this); if (avatar == null) { avatar = GetComponent <PlayerAvatar>(); } avatar.SetUserInfo(userInfo); }