示例#1
0
 // Token: 0x0600000A RID: 10 RVA: 0x0000212E File Offset: 0x0000032E
 public void EnableLayer(AvatarAnimationController.AnimationLayer layer, bool enable)
 {
     if (enable)
     {
         this.animationLayerMask |= 1 << (int)layer;
     }
     else
     {
         this.animationLayerMask &= ~(1 << (int)layer);
     }
 }
示例#2
0
    // Token: 0x0600000E RID: 14 RVA: 0x00015C20 File Offset: 0x00013E20
    private void UpdateLayerWeight(AvatarAnimationController.AnimationLayer layer, bool smooth = false)
    {
        float num = (float)((!this.IsLayerEnabled(layer)) ? 0 : 1);

        if (smooth)
        {
            float weight = Mathf.Lerp(this.Animator.GetLayerWeight((int)layer), num, Time.deltaTime * 7.5f);
            this.Animator.SetLayerWeight((int)layer, weight);
        }
        else
        {
            this.Animator.SetLayerWeight((int)layer, num);
        }
    }
示例#3
0
 // Token: 0x06000009 RID: 9 RVA: 0x00002119 File Offset: 0x00000319
 public bool IsLayerEnabled(AvatarAnimationController.AnimationLayer layer)
 {
     return((this.animationLayerMask & 1 << (int)layer) != 0);
 }