private bool onProcessAnimationFrame(ModelRenderer modelRenderer) { if (!avatarImageSet) { this.modelRenderer = modelRenderer; AvatarIcon.enabled = true; AvatarIcon.texture = modelRenderer.RenderTexture; AvatarPreloader.SetActive(value: false); AvatarContainer.SetActive(value: true); avatarImageSet = true; if (this.OnAvatarImageSet != null) { this.OnAvatarImageSet(); } } if (updateRotation) { Quaternion modelRotation = modelRenderer.GetModelRotation(); modelRotation *= Quaternion.Euler(0f, rotationAmount * Time.deltaTime, 0f); modelRenderer.SetModelRotation(modelRotation); updateRotation = false; } return(continueAvatarRender); }