Hi guys
I must be missing something fundamental here in my animation prog.
I have a class called Object Manager and in that it holds a List<> of
SceneObjects, on every frame on my animation i update my GameTime which is a
TimeSpan. So inside the object manager i do:
public void GameTime(TimeSpan time)
{
foreach (SceneObject so in _sceneObjList)
{
so.GameTime = time;
}
}
So that all the sceneobjetcs have their internal timers kept in sync. i have
objects that inherit from SceneObject and i use their internal _gameTime
(set above) to get the gametime. But i am noticing that inside the inherited
members gametime seems to get set once and then never gets updated, even
though if i do a check straight after i set game time it is constantly
updating, it seems it is not updating down the chain. Why?