public override void Update(GameTime gameTime) { AnimatorTop.Update(gameTime); AnimatorBase.Update(gameTime); Debug.Assert(AnimatorTop.Position == Position); Debug.Assert(AnimatorBase.Position == Position); }
public override void Draw(GameTime gameTime, SpriteBatch spriteBatch) { if (IsHidden == false) { AnimatorBase.Draw(gameTime, spriteBatch, Alpha); AnimatorTop.Draw(gameTime, spriteBatch, Alpha); } }
/// <summary> /// Core method used to re-instantiate non-serializable properties and delegates. /// </summary> public override void LoadContent(IMainGame mainGame) { if (AnimatorTop != null) { AnimatorTop.LoadContent(mainGame); AnimatorTop.Sprite = this; } if (AnimatorBase != null) { AnimatorBase.LoadContent(mainGame); AnimatorBase.Sprite = this; } }