public override void OnUpdateUserAvatar(long avatarHolder, string avatarPath)
 {
     if (avatarHolder == AvatarHolderConnectionId)
     {
         WebChacher.DownloadOrChache(avatarPath, SetAvatar);
         //StartCoroutine(DownloadCoroutine(avatarPath));
     }
 }
    public new void OnEnable()
    {
        base.OnEnable();

        if (DownloadMyAvatarOnConnect && !string.IsNullOrEmpty(FoolNetwork.LocalPlayer.AvatarFile))
        {
            WebChacher.DownloadOrChache(FoolNetwork.LocalPlayer.AvatarFile, SetAvatar);
            //StartCoroutine(DownloadCoroutine(FoolNetwork.LocalPlayer.AvatarFile));
        }
    }
    /// <summary>
    /// observer callback used to download my avatar if wasn't
    /// </summary>
    public override void OnUpdateUserData(long connectionId, long userId, string nickname, double money, string avatarFile)
    {
        if (DownloadMyAvatarOnConnect)
        {
            AvatarHolderConnectionId = FoolNetwork.LocalPlayer.ConnectionId;

            // todo not download my avatar but find it on disc
            WebChacher.DownloadOrChache(FoolNetwork.LocalPlayer.AvatarFile, SetAvatar);
        }
    }