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); }
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); }
protected virtual void SetAnimatorStateOn(string state, AxisOverrides overrides) { animator.SetFloat(state, (overrides.ignoreAllOverrides ? -1f : overrides.stateValue)); }