public MintTweener(MintGetter <T> mintGetter, MintSetter <T> mintSetter, MintTweenDataBase <T> mintTweenInfo) { _getter = mintGetter; _setter = mintSetter; TweenInfo = mintTweenInfo; this.IsPause = true; register(); }
public static MintTweener <Color> Create(MintGetter <Color> mintGetter, MintSetter <Color> mintSetter, Color endvalue, float duration) { var mintTweenerInfo = new MintTweenDataBase <Color>() { EaseType = MintEaseMethod.Linear, Duration = duration, StartValue = mintGetter.Invoke(), EndValue = endvalue }; var a = new MintTweener <Color>(mintGetter, mintSetter, mintTweenerInfo); return(a); }