Exemplo n.º 1
0
        public void Dispose()
        {
            if (Frame != null)
            {
                Frame.DisposeAll();
            }
            if (ItemDisplay != null)
            {
                ItemDisplay.DisposeVao();
            }
            if (SelectedDisplay != null)
            {
                SelectedDisplay.DisposeAll();
            }

            if (HotbarFrame != null)
            {
                HotbarFrame.DisposeAll();
            }
            if (HotbarItemDisplay != null)
            {
                HotbarItemDisplay.DisposeAll();
            }
            if (HotbarSelectedDisplay != null)
            {
                HotbarSelectedDisplay.DisposeAll();
            }
        }
Exemplo n.º 2
0
 internal void Dispose()
 {
     text.Dispose();
     model.DisposeAll();
 }