Пример #1
0
 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();
     }
 }
Пример #2
0
        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);
            }
        }
Пример #3
0
        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);
        }