Esempio n. 1
0
 public static Behavior<T> Wait<T>(this Behavior<T> v, float delay)
 {
     return Behavior.Create(ctx => v.BehaviorFunc(new BehaviorContext(ctx.Time + delay)));
 }
Esempio n. 2
0
 public static Behavior<T> Faster<T>(this Behavior<T> v, float speed)
 {
     return Behavior.Create(ctx => v.BehaviorFunc(new BehaviorContext(ctx.Time * speed)));
 }