示例#1
0
 protected override void Refresh(Renderable renderItem, float delta)
 {
     renderItem.SetAlpha(MathHelper.Lerp(_from, _to, Easing.Perform(_easeMode, Elapsed, (float)Duration.TotalSeconds)));
 }
示例#2
0
 protected override void End(Renderable renderItem)
 {
     renderItem.SetAlpha(_to);
 }