コード例 #1
0
        //-------------------------------------------------------------------------
        public void freeBackgroundStillSprite(StillSprite still_sprite)
        {
            if (still_sprite == null) return;
            //Resources.UnloadAsset(still_sprite.renderer.material.mainTexture);
            still_sprite.destroy();

            //Resources.UnloadUnusedAssets();
        }
コード例 #2
0
        //-------------------------------------------------------------------------
        public void freeBackgroundStillSprite(StillSprite still_sprite)
        {
            if (still_sprite == null)
            {
                return;
            }
            //Resources.UnloadAsset(still_sprite.renderer.material.mainTexture);
            still_sprite.destroy();

            //Resources.UnloadUnusedAssets();
        }
コード例 #3
0
        //-------------------------------------------------------------------------
        public void destroy()
        {
            mLevelScreenShocker.destroy();
            mLevelBackgroundMgr.destroy();
            mLevelSeaStarMgr.destroy();

            if (mRippleBackgroundStillSprite == null)
            {
                return;
            }
            mRippleBackgroundStillSprite.destroy();
            mRippleBackgroundStillSprite = null;
        }