internal void SelfDestruct()
{
mPrefab = null;
mPrefabGO = null;
if (mSpawnPool != null)
{
Transform tmp = null;
for (int i = 0; i < mDespawned.Count; ++i)
{
tmp = mDespawned[i];
if (tmp == null) continue;
mSpawnPool.DestroyInstance(tmp.gameObject);
}
for (int i = 0; i < mSpawned.Count; ++i)
{
tmp = mSpawned[i];
if (tmp == null) continue;
mSpawnPool.DestroyInstance(tmp.gameObject);
}
}
mSpawned.Clear();
mDespawned.Clear();
mSpawnPool = null;
}