public void TestTimePassing() { Lifespan ls = new Lifespan(1); TimeSpan ts = new TimeSpan(0, 0, 0, 0, 500); GameTime gt = new GameTime(ts, ts); ls.Update(gt); Assert.AreEqual(.5, ls.Halflife); ls.Update(gt); Assert.AreEqual(1, ls.Halflife); }
protected internal virtual void UpdateTime(TimeStep step) { lifetime.Update(step); }