private void Dispose(bool disposing) { if (IconMain != null) { IconMain.Dispose(); } if (IconMoney != null) { IconMoney.Dispose(); } if (LabelMain != null) { LabelMain.Dispose(); } if (LabelMoney != null) { LabelMoney.Dispose(); } }
public override void Draw(GameTime gameTime, Renderer renderer) { base.Draw(gameTime, renderer); if (IconMain != null) { IconMain.Draw(gameTime, renderer); } if (LabelMain != null) { LabelMain.Draw(gameTime, renderer); } if (IconMoney != null) { IconMoney.Draw(gameTime, renderer); } if (LabelMoney != null) { LabelMoney.Draw(gameTime, renderer); } }
public override void Update(GameTime gameTime) { if (IconMain != null) { IconMain.Update(gameTime); } if (LabelMain != null) { LabelMain.Update(gameTime); } if (IconMoney != null) { IconMoney.Update(gameTime); } if (LabelMoney != null) { LabelMoney.Update(gameTime); } // always update ourself first because our base will clear the Clicked flag once it has processed base.Update(gameTime); }