SetHumanPose() private method

private SetHumanPose ( Animator animator, float dof ) : void
animator UnityEngine.Animator
dof float
return void
Example #1
0
 protected void WritePose()
 {
     if (base.gameObject != null)
     {
         Animator component = base.gameObject.GetComponent(typeof(Animator)) as Animator;
         if (component != null)
         {
             Avatar avatar = component.avatar;
             if (((avatar != null) && avatar.isValid) && avatar.isHuman)
             {
                 AvatarUtility.SetHumanPose(component, this.m_MuscleValue);
                 SceneView.RepaintAll();
             }
         }
     }
 }
 protected void WritePose()
 {
     if (base.gameObject)
     {
         Animator animator = base.gameObject.GetComponent(typeof(Animator)) as Animator;
         if (animator != null)
         {
             Avatar avatar = animator.avatar;
             if (avatar != null && avatar.isValid && avatar.isHuman)
             {
                 AvatarUtility.SetHumanPose(animator, this.m_MuscleValue);
                 SceneView.RepaintAll();
             }
         }
     }
 }
        protected void WritePose()
        {
            if (!(bool)((UnityEngine.Object) this.gameObject))
            {
                return;
            }
            Animator component = this.gameObject.GetComponent(typeof(Animator)) as Animator;

            if (!((UnityEngine.Object)component != (UnityEngine.Object)null))
            {
                return;
            }
            Avatar avatar = component.avatar;

            if (!((UnityEngine.Object)avatar != (UnityEngine.Object)null) || !avatar.isValid || !avatar.isHuman)
            {
                return;
            }
            AvatarUtility.SetHumanPose(component, this.m_MuscleValue);
            SceneView.RepaintAll();
        }