public static CozyAnimate Create(CozyAnimation animation) { var a = new CozyAnimate(); a.InitWithAnimation(animation); return(a); }
public static CozyAnimation Create(List<CozyAnimationFrame> frameList, float delayPreUnit = 0.0f, uint loops = 1) { var animation = new CozyAnimation(); animation.InitWithAnimationFrames(frameList, delayPreUnit, loops); return animation; }
public static CozyAnimation Create() { var animation = new CozyAnimation(); animation.Init(); return(animation); }
public object Clone() { var a = new CozyAnimation(); a.InitWithAnimationFrames(_Frames, DelayPerUnit, Loops); a.RestoreOriginalFrame = RestoreOriginalFrame; return(a); }
public static CozyAnimation Create(List <CozyAnimationFrame> frameList, float delayPreUnit = 0.0f, uint loops = 1) { var animation = new CozyAnimation(); animation.InitWithAnimationFrames(frameList, delayPreUnit, loops); return(animation); }
public bool InitWithAnimation(CozyAnimation animation) { float signleDuration = animation.Duration; base.InitWithDuraction(signleDuration * animation.Loops); NextFrame = 0; Animaction = animation; OrigFrame = null; ExecutedLoops = 0; float accumUnitOfTime = 0; float newUnitOfTimeValue = signleDuration / animation.TotalDelayUnits; var frames = animation.Frames; foreach(var obj in frames) { float value = (accumUnitOfTime * newUnitOfTimeValue) / signleDuration; accumUnitOfTime += obj.DelayUnits; SplitTimes.Add(value); } return true; }
public bool InitWithAnimation(CozyAnimation animation) { float signleDuration = animation.Duration; base.InitWithDuraction(signleDuration * animation.Loops); NextFrame = 0; Animaction = animation; OrigFrame = null; ExecutedLoops = 0; float accumUnitOfTime = 0; float newUnitOfTimeValue = signleDuration / animation.TotalDelayUnits; var frames = animation.Frames; foreach (var obj in frames) { float value = (accumUnitOfTime * newUnitOfTimeValue) / signleDuration; accumUnitOfTime += obj.DelayUnits; SplitTimes.Add(value); } return(true); }
public object Clone() { var a = new CozyAnimation(); a.InitWithAnimationFrames(_Frames, DelayPerUnit, Loops); a.RestoreOriginalFrame = RestoreOriginalFrame; return a; }
public static CozyAnimation Create() { var animation = new CozyAnimation(); animation.Init(); return animation; }
public static CozyAnimate Create(CozyAnimation animation) { var a = new CozyAnimate(); a.InitWithAnimation(animation); return a; }