public void UpdateAvatarPreview(AvatarModel avatarModel) { if (avatarModel?.wearables == null) { return; } SetLoadingPanel(true); characterPreviewController.UpdateModel(avatarModel, () => SetLoadingPanel(false)); }
public void UpdateAvatarPreview(AvatarModel avatarModel) { if (avatarModel?.wearables == null) { return; } SetLoadingPanel(true); doneButton.interactable = false; characterPreviewController.UpdateModel(avatarModel, () => { SetLoadingPanel(false); if (doneButton != null) { doneButton.interactable = true; } OnAvatarAppear?.Invoke(avatarModel); }); }
public void UpdateAvatarPreview(AvatarModel avatarModel) { if (avatarModel?.wearables == null) { return; } doneButton.interactable = false; loadingSpinnerGameObject.SetActive(true); characterPreviewController.UpdateModel(avatarModel, () => { if (doneButton != null) { doneButton.interactable = true; } loadingSpinnerGameObject?.SetActive(false); OnAvatarAppear?.Invoke(avatarModel); ClearWearablesLoadingSpinner(); randomizeAnimator?.SetBool(RANDOMIZE_ANIMATOR_LOADING_BOOL, false); }); }