|
@@ -191,7 +191,7 @@ namespace GFGGame
|
|
|
}
|
|
|
public void SetGalleryData()
|
|
|
{
|
|
|
- if(_dicGalleryData.Count > 30)
|
|
|
+ if(_dicGalleryData.Count > 20)
|
|
|
{
|
|
|
if(GalleryIDList.Count >= 10)
|
|
|
{
|
|
@@ -200,6 +200,8 @@ namespace GFGGame
|
|
|
long id = GalleryIDList[i];
|
|
|
if (_dicGalleryData.ContainsKey(id))
|
|
|
{
|
|
|
+ _dicGalleryData[id].Ntexture.Dispose();
|
|
|
+ _dicGalleryData[id].Ntexture = null;
|
|
|
_dicGalleryData.Remove(id);
|
|
|
}
|
|
|
}
|
|
@@ -209,13 +211,15 @@ namespace GFGGame
|
|
|
}
|
|
|
public void RemoveGalleryData()
|
|
|
{
|
|
|
- if (_dicGalleryData.Count > 30)
|
|
|
+ if (_dicGalleryData.Count > 20)
|
|
|
{
|
|
|
for (int i = 0; i < GalleryIDList.Count; i++)
|
|
|
{
|
|
|
long id = GalleryIDList[i];
|
|
|
if (_dicGalleryData.ContainsKey(id))
|
|
|
{
|
|
|
+ _dicGalleryData[id].Ntexture.Dispose();
|
|
|
+ _dicGalleryData[id].Ntexture = null;
|
|
|
_dicGalleryData.Remove(id);
|
|
|
}
|
|
|
}
|