CurveSupportsProcedural() private method

private CurveSupportsProcedural ( AnimationCurve curve ) : bool
curve UnityEngine.AnimationCurve
return bool
Beispiel #1
0
        public bool SupportsProcedural()
        {
            bool flag = AnimationUtility.CurveSupportsProcedural(this.maxCurve.animationCurveValue);

            if ((this.state != MinMaxCurveState.k_TwoCurves) && (this.state != MinMaxCurveState.k_TwoScalars))
            {
                return(flag);
            }
            return(flag && AnimationUtility.CurveSupportsProcedural(this.minCurve.animationCurveValue));
        }
        public bool SupportsProcedural()
        {
            bool flag = AnimationUtility.CurveSupportsProcedural(this.maxCurve.animationCurveValue);
            bool result;

            if (this.state != MinMaxCurveState.k_TwoCurves && this.state != MinMaxCurveState.k_TwoScalars)
            {
                result = flag;
            }
            else
            {
                result = (flag && AnimationUtility.CurveSupportsProcedural(this.minCurve.animationCurveValue));
            }
            return(result);
        }