/// <summary>Perform any logic needed on update while the animation is active.</summary> /// <param name="playerAnimationID">The player's current animation ID.</param> public override void Update(int playerAnimationID) { LoadGameMenu menu = (LoadGameMenu)this.Reflection.GetField <IClickableMenu>(typeof(TitleMenu), "_subMenu").GetValue(); IReflectedField <int> timerToLoad = this.GetTimerToLoad(menu); for (int i = 1; i < this.Multiplier && timerToLoad.GetValue() > 0; i++) { menu.update(Game1.currentGameTime); } }
/// <summary>Perform any logic needed on update while the animation is active.</summary> /// <param name="playerAnimationID">The player's current animation ID.</param> public override void Update(int playerAnimationID) { LoadGameMenu menu = (LoadGameMenu)this.Reflection.GetField <IClickableMenu>(typeof(TitleMenu), "_subMenu").GetValue(); IReflectedField <int> timerToLoad = this.GetTimerToLoad(menu); this.ApplySkips( run: () => menu.update(Game1.currentGameTime), until: () => timerToLoad.GetValue() <= 0 ); }