Esempio n. 1
0
 public override void BeforeDispose()
 {
     if (_toolbarUi != null)
     {
         _toolbarUi.Dispose();
     }
     if (_spriteRender != null)
     {
         _spriteRender.Dispose();
     }
     if (_crosshair != null)
     {
         _crosshair.Dispose();
     }
     if (_font != null)
     {
         _font.Dispose();
     }
     if (_tooltip != null)
     {
         _tooltip.Dispose();
     }
     if (_weatherContainer != null)
     {
         _weatherContainer.Dispose();
     }
     if (_energyBar != null)
     {
         _energyBar.Dispose();
     }
     if (_d3DEngine != null)
     {
         _d3DEngine.ScreenSize_Updated -= D3DEngineViewPortUpdated;
     }
 }
Esempio n. 2
0
        public void Dispose()
        {
            if (StShadow != null)
            {
                StShadow.Dispose();
                StLogo.Dispose();
                StGameName.Dispose();
                StCubesPattern.Dispose();
                StLinenPattern.Dispose();
                StInputBackground.Dispose();
                StButtonBackground.Dispose();
                StButtonBackgroundDown.Dispose();
                StButtonBackgroundHover.Dispose();

                FontBebasNeue50.Dispose();
                FontBebasNeue35.Dispose();
                FontBebasNeue25.Dispose();
                FontBebasNeue17.Dispose();
            }

            if (StInventoryEquipmentSlot != null)
            {
                StInventoryEquipmentSlot.Dispose();
                StInventoryEquipmentSlotHover.Dispose();
                StInventoryInfo.Dispose();
                StInventorySlot.Dispose();
                StInventorySlotHover.Dispose();
            }
        }