I thought this was a great concept; a method that is activated from the constructor when the object is created and in the method, see code below, after 3 seconds call another object to remove it from a list, but unfortunately this isn't working the way I want! There seems to be some problems with the timer, because the call to remove the object is done immediately without any delay! Have I missed something or isn't this possible? Perhaps in another way?
public void ExplosionTimer(GameTime gameTime)
{
seconds += (float)gameTime.ElapsedGameTime.TotalSeconds;
if (seconds > 3)
objectManager.ExplosionControl();
}