public FadeScreen(int startAlpha, int endAlpha, float time) { this.startAlpha = startAlpha; this.endAlpha = endAlpha; timer = new SteppingTimer(time, UpdateAlpha); Add(timer); }
public Pulse(Entity start, Entity end) { Depth = 0.78f; SetTexture("pulse"); move = new SteppingTimer(1, x => { LocalPosition = Vector2.Lerp(start.Position, end.Position, x); }); Add(move); }