示例#1
0
 protected virtual float[] GetOverrideValues(AxisOverrides overrideType)
 {
     float[] overrides = new float[]
     {
         CorrectOverrideValue(overrideType.thumbOverride),
         CorrectOverrideValue(overrideType.indexOverride),
         CorrectOverrideValue(overrideType.middleOverride),
         CorrectOverrideValue(overrideType.ringOverride),
         CorrectOverrideValue(overrideType.pinkyOverride)
     };
     return(overrides);
 }
示例#2
0
 protected virtual bool[] GetOverridePermissions(AxisOverrides overrideType)
 {
     bool[] overrides = new bool[]
     {
         ApplyFingerOverrides(overrideType.applyThumbOverride, 0),
         ApplyFingerOverrides(overrideType.applyIndexOverride, 1),
         ApplyFingerOverrides(overrideType.applyMiddleOverride, 2),
         ApplyFingerOverrides(overrideType.applyRingOverride, 3),
         ApplyFingerOverrides(overrideType.applyPinkyOverride, 4)
     };
     return(overrides);
 }
示例#3
0
 protected virtual void SetAnimatorStateOn(string state, AxisOverrides overrides)
 {
     animator.SetFloat(state, (overrides.ignoreAllOverrides ? -1f : overrides.stateValue));
 }