Пример #1
0
 public TimeLerpValueUnscaledFlow(TInvokeTarget target, float lerpTime, float startVal, float endVal, Action <float> func, Action onComplete = null) : base(target)
 {
     this.timeElapsed = -_getUnscaledDeltaTime();
     this.lerpTime    = lerpTime;
     this.startVal    = startVal;
     this.endVal      = endVal;
     this.func        = func;
     this.onComplete  = onComplete;
 }
Пример #2
0
 public InvokeWhileFlow(TInvokeTarget target, Action func, Func <bool> condition, Action onComplete = null) : base(target)
 {
     this.func       = func;
     this.condition  = condition;
     this.onComplete = onComplete;
 }
Пример #3
0
 public InvokeWhenFlow(TInvokeTarget target, Action func, Func <bool> condition) : base(target)
 {
     this.func      = func;
     this.condition = condition;
 }
Пример #4
0
 public InvokeFlow(TInvokeTarget target)
 {
     this.target = target;
 }
Пример #5
0
 public InvokeDelayedFramesFlow(TInvokeTarget target, int delayFrames, Action func) : base(target)
 {
     framesElapsed    = -1;
     this.func        = func;
     this.delayFrames = delayFrames;
 }
Пример #6
0
 public InvokeDelayedUnscaledFlow(TInvokeTarget target, float delayTime, Action func) : base(target)
 {
     timeElapsed    = -_getUnscaledDeltaTime();
     this.func      = func;
     this.delayTime = delayTime;
 }