Update() private method

private Update ( ) : void
return void
Example #1
0
        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);
        }
Example #2
0
 protected internal virtual void UpdateTime(TimeStep step)
 {
     lifetime.Update(step);
 }