public static StaticWallManager Get()
        {
            if (mInstance == null)
                mInstance = new StaticWallManager();

            return mInstance;
        }
        public void destroy()
        {
            Debug.Log("Destroying " + mStaticWalls.Count + " objects");

            foreach (PlaceableStaticWall staticWall in mStaticWalls.Values)
                GameObject.Destroy(staticWall.gameObject);

            mStaticWalls.Clear();
            mStaticWalls = null;

            _map.destroy();
            _map = null;

            mInstance = null;
        }
        protected override void Start()
        {
            if (mCM == null)
                mCM = ChunkManager.Get();
            if (mSWM == null)
                mSWM = StaticWallManager.Get();

            base.Start();
        }
 public static void cleanup()
 {
     mWallTextures = null;
     mCM = null;
     mSWM = null;
 }