浏览代码

Implement ConstantTween

/main
Yuncong Zhang 5 年前
当前提交
11966f2c
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9
      Runtime/animation/tween.cs

9
Runtime/animation/tween.cs


return (this.begin + (this.end - this.begin) * t);
}
}
class ConstantTween<T> : Tween<T> {
public ConstantTween(T value) : base(begin: value, end: value) {
}
public override T lerp(float t) => this.begin;
String toString() => $"{this.GetType()}(value: {this.begin})";
}
public class CurveTween : Animatable<float> {
public CurveTween(Curve curve = null) {

正在加载...
取消
保存