public void Initialize(AvatarHUDModel model, bool visibility = true, bool expanded = false) { view = AvatarHUDView.Create(this); UpdateData(model); SetVisibility(visibility); SetExpanded(expanded); }
internal void UpdateData(AvatarHUDModel model) { topAvatarPic.sprite = model.avatarPic; loadingAvatar.SetActive(topAvatarPic.sprite == null); nameText.text = model.name; newWearableNotificationText.text = model.newWearables.ToString(); newWearableNotification.SetActive(model.newWearables != 0); }
public void UpdateData(AvatarHUDModel model) { this.model = model; view.UpdateData(this.model); }