示例#1
0
 protected void UpdateAvatarParameter(HumanParameter parameterId, float value)
 {
     if (base.gameObject != null)
     {
         Animator component = base.gameObject.GetComponent(typeof(Animator)) as Animator;
         component.avatar.SetParameter((int)parameterId, value);
     }
 }
 protected void UpdateAvatarParameter(HumanParameter parameterId, float value)
 {
     if (!((UnityEngine.Object) this.gameObject != (UnityEngine.Object)null))
     {
         return;
     }
     (this.gameObject.GetComponent(typeof(Animator)) as Animator).avatar.SetParameter((int)parameterId, value);
 }
示例#3
0
 protected void UpdateAvatarParameter(HumanParameter parameterId, float value)
 {
     // For live update, update instanciate avatar to adjust pose
     if (gameObject != null)
     {
         Animator animator = gameObject.GetComponent(typeof(Animator)) as Animator;
         Avatar   avatar   = animator.avatar;
         avatar.SetParameter((int)parameterId, value);
     }
 }
 protected void UpdateAvatarParameter(HumanParameter parameterId, float value)
 {
   if (!((UnityEngine.Object) this.gameObject != (UnityEngine.Object) null))
     return;
   (this.gameObject.GetComponent(typeof (Animator)) as Animator).avatar.SetParameter((int) parameterId, value);
 }
		protected void UpdateAvatarParameter(HumanParameter parameterId, float value)
		{
			if (base.gameObject != null)
			{
				Animator animator = base.gameObject.GetComponent(typeof(Animator)) as Animator;
				Avatar avatar = animator.avatar;
				avatar.SetParameter((int)parameterId, value);
			}
		}