Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 public void Reset(CurveSelector selector, float curveTime)
 {
     TimerCurve = selector;
     CurveTime  = curveTime;
 }
Ejemplo n.º 3
0
 /// <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;
 }