예제 #1
0
    public void UpdateAvatarPreview(AvatarModel avatarModel)
    {
        if (avatarModel?.wearables == null)
        {
            return;
        }

        SetLoadingPanel(true);
        characterPreviewController.UpdateModel(avatarModel, () => SetLoadingPanel(false));
    }
예제 #2
0
    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);
        });
    }
예제 #3
0
    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);
        });
    }