protected override void Draw(Utils.Time time) { base.Draw(time); this.time = time; Matrix4 proj = Matrix4.CreateOrthographicOffCenter(0, this.Width, this.Height, 0, -1, 10); foreach (var item in systems) { item.Render(ref proj, this.particleProgram, this.particleAtlas.Texture); } }
protected internal override void Update(Utils.Time time) { base.Update(time); foreach (var item in this.controls) { if (!item.Visible) { continue; } item.Update(time); } }
public void Update(Utils.Time time) { if (running) { this.elapsed += time.Elapsed; if (this.interval <= this.elapsed) { this.elapsed -= this.interval; this.activeIndex = (this.activeIndex + 1) % this.frames.Length; } } }
protected override void Update(Utils.Time time) { base.Update(time); foreach (var item in this.systems) { item.Update(time); } foreach (var emiter in this.emiters) { emiter.Update(time); } }
protected override void Update(Utils.Time time) { base.Update(time); for (int i = this.interpolations.Count - 1; i >= 0; i--) { this.interpolations[i].Update(time); if (this.interpolations[i].Compleate) { this.interpolations.RemoveAt(i); } } }
protected internal override void Update(Utils.Time time) { if (this.Animation != null) { var old = this.Animation.CurrentFrame; this.Animation.Update(time); if (old != this.Animation.CurrentFrame) { this.OnFrameChanged(new FrameChangedEventArgs(old, this.Animation.CurrentFrame)); } } }
protected internal override void Update(Utils.Time time) { fsm.Update(time); }