コード例 #1
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);
        });
    }
コード例 #2
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);
        });
    }