Example #1
0
 // TODO: implement me: loop(times, forever, yoyo)
 // notice: looping needs to take into account that some duration might have passed in the
 // new iteration
 public TweenManager(ITweenTimeline timeline, TweenTime time, Loop looping, string context, bool stopIfDestroyed = false)
 {
     this.timeline        = timeline;
     this.time            = time;
     this.looping         = looping;
     this.context         = context;
     this.stopIfDestroyed = stopIfDestroyed;
 }
Example #2
0
 public static TweenManager managed(
     this ITweenTimeline timeline, TweenTime time = TweenTime.OnUpdate,
     [CallerMemberName] string callerMemberName   = "",
     [CallerFilePath] string callerFilePath       = "",
     [CallerLineNumber] int callerLineNumber      = 0
     ) => new TweenManager(
     timeline, time, TweenManager.Loop.single, createContext(callerMemberName, callerFilePath, callerLineNumber)
     );
Example #3
0
 // TODO: implement me: loop(times, forever, yoyo)
 // notice: looping needs to take into account that some duration might have passed in the
 // new iteration
 public TweenManager(ITweenTimeline timeline, TweenTime time, Loop looping)
 {
     this.timeline = timeline;
     this.time     = time;
     this.looping  = looping;
 }
Example #4
0
 public static TweenManager managed(
     this ITweenTimeline timeline, TweenManager.Loop looping, TweenTime time = TweenTime.OnUpdate
     ) => new TweenManager(timeline, time, looping);