/// <summary> /// Creates a new CurveTimer object with a pre-existing CurveSelector object and a length in time. /// </summary> public CurveTimer(CurveSelector curve, float timerLength = 1.0f) { TimerCurve = curve; CurveTime = timerLength; }
public void Reset(CurveSelector selector, float curveTime) { TimerCurve = selector; CurveTime = curveTime; }
/// <summary> /// Creates a new CurveTimer object with the given curve type and length in time. /// </summary> public CurveTimer(CurveSelector.CurveTypes curve = CurveSelector.CurveTypes.Linear, float timerLength = 1.0f) { TimerCurve = new CurveSelector(curve); CurveTime = timerLength; }