示例#1
0
        void Clear()
        {
            foreach (var animations in FieldManager.Animations())
            {
                animations.Clear();
            }

            m_cells      = null;
            m_fieldData  = null;
            m_sourceCell = null;
            m_prevPathCellsSet.Clear();
            m_pathCellsSet.Clear();
            m_pathCellsQueue.Clear();
            ((FieldCanvas)Canvas).Clear();
            Descriptor             = null;
            m_displaysCount        = 0;
            ConnectedDisplaysCount = 0;

            GC.Collect(2, GCCollectionMode.Forced);
        }