private void OnChangeProfile(RenderProfileWorld profile)
        {
            if (profile == null)
            {
                return;
            }

            blockerPrefabDirty = true;
            blockerPrefab      = profile.loadingBlockerPrefab;
        }
Пример #2
0
        public void Initialize(RenderProfileWorld initProfile = null)
        {
            currentProfile = initProfile != null ? initProfile : defaultProfile;

            if (currentProfile == null)
            {
                Debug.Log("Default profile should never be null!");
                return;
            }

            currentProfile.avatarProfile.currentProfile = currentProfile.avatarProfile.inWorld;
            currentProfile.Apply();
        }
Пример #3
0
 private void OnChangeProfile(RenderProfileWorld profile)
 {
     if (profile == RenderProfileManifest.i.defaultProfile)
     {
         dayModeButton.gameObject.SetActive(false);
         nightModeButton.gameObject.SetActive(true);
     }
     else
     {
         dayModeButton.gameObject.SetActive(true);
         nightModeButton.gameObject.SetActive(false);
     }
 }
    private void OnChangeProfile(RenderProfileWorld profile)
    {
        if (profile == RenderProfileManifest.i.defaultProfile)
        {
            dayModeButton.gameObject.SetActive(false);
            nightModeButton.gameObject.SetActive(true);

            if (moreMenuAnimator.isVisible)
            {
                nightModeButton.PlayAnimation(TaskbarMoreMenuButton.AnimationStatus.Visible);
            }
        }
        else
        {
            dayModeButton.gameObject.SetActive(true);
            nightModeButton.gameObject.SetActive(false);

            if (moreMenuAnimator.isVisible)
            {
                dayModeButton.PlayAnimation(TaskbarMoreMenuButton.AnimationStatus.Visible);
            }
        }
    }
Пример #5
0
 private void OnChangeProfile(RenderProfileWorld profile)
 {
     blockerPrefabDirty = true;
     blockerPrefab      = profile.loadingBlockerPrefab;
 }