Пример #1
0
 public void Dispose()
 {
     backgroundSprite.Dispose();
     campfireSprite.Dispose();
     headingFont.Dispose();
     headingLabel.Dispose();
 }
Пример #2
0
        public void Dispose()
        {
            backgroundSprite?.Dispose();

            foreach (var labelItem in fontLabels)
            {
                labelItem.Label.Dispose();
            }

            textFont.Dispose();
        }
Пример #3
0
 public void Dispose()
 {
     backgroundSprite.Dispose();
     diabloLogoLeft.Dispose();
     diabloLogoRight.Dispose();
     diabloLogoLeftBlack.Dispose();
     diabloLogoRightBlack.Dispose();
     labelFont.Dispose();
     versionLabel.Dispose();
     urlLabel.Dispose();
     btnSinglePlayer.Dispose();
     btnExit.Dispose();
     btnWebsite.Dispose();
 }
Пример #4
0
        virtual public void Release()
        {
            if (_font != null)
            {
                _font.Dispose();
            }

            _font = null;
            if (_brush != null)
            {
                _brush.Dispose();
            }

            _brush = null;
        }
Пример #5
0
        public void Dispose()
        {
            backgroundSprite.Dispose();
            campfireSprite.Dispose();
            headingFont.Dispose();
            headingLabel.Dispose();
            sfxDictionary.Clear();

            foreach (var hri in heroRenderInfo)
            {
                hri.Value.Dispose();
            }

            heroRenderInfo.Clear();
        }
Пример #6
0
 protected override void OnDeleted()
 {
     font.Dispose();
 }
Пример #7
0
 public void Dispose()
 {
     font.Dispose();
 }
Пример #8
0
 protected override void OnDeleted()
 {
     fontSmall.Dispose();
     fontLarge.Dispose();
 }