Example #1
0
 private void OnOtherDisconnect(uint id)
 {
     if (_avatarAreaManager.HasAvatarView(id))
     {
         _avatarAreaManager.RemoveAvatarView(id);
     }
 }
Example #2
0
 private void handleNewAvatar(GetAvatars pGetAvatars)
 {
     foreach (AvatarObject avatar in pGetAvatars.AvatarList)
     {
         if (_avatarAreaManager.HasAvatarView(avatar.id))
         {
             continue;
         }
         else
         {
             AvatarView avatarView = _avatarAreaManager.AddAvatarView(avatar.id);
             avatarView.transform.localPosition = new Vector3(avatar.xPos, avatar.yPos, avatar.zPos);
             avatarView.SetSkin(avatar.skindID);
             continue;
         }
     }
 }