public float GetValueAtTime(int curve, float time) { int startIndex = BinarySearchFirstPoint(curve, time); return BinarySearchCurveValue(curve, startIndex, time); }