//------------------------------------------------------------------------- public void freeBackgroundStillSprite(StillSprite still_sprite) { if (still_sprite == null) { return; } //Resources.UnloadAsset(still_sprite.renderer.material.mainTexture); still_sprite.destroy(); //Resources.UnloadUnusedAssets(); }
//------------------------------------------------------------------------- public void destroy() { mLevelScreenShocker.destroy(); mLevelBackgroundMgr.destroy(); mLevelSeaStarMgr.destroy(); if (mRippleBackgroundStillSprite == null) { return; } mRippleBackgroundStillSprite.destroy(); mRippleBackgroundStillSprite = null; }