Ejemplo n.º 1
0
    public void DeleteUIScene()
    {
        if (_sceneBase != null)
        {
            _sceneBase.Delete();
            _sceneBase = null;
        }

        UIPanelManager.instance.DeleteAllPanels();

        Resources.UnloadUnusedAssets();
        GC.Collect();
    }