1
This commit is contained in:
@@ -33,7 +33,7 @@ namespace BITKit.Pool
|
||||
{
|
||||
if (obj is not Component component) continue;
|
||||
if (!hashset.Add(component.gameObject)) continue;
|
||||
if (component.gameObject)
|
||||
if (component)
|
||||
Object.Destroy(component.gameObject);
|
||||
}
|
||||
}
|
||||
@@ -87,6 +87,9 @@ namespace BITKit.Pool
|
||||
if (asset is Object o)
|
||||
{
|
||||
var instance = Object.Instantiate(o);
|
||||
|
||||
instance.name = path;
|
||||
|
||||
list.Add(instance);
|
||||
UsingPool.GetOrCreate(path).Add(instance);
|
||||
ReadyPool.GetOrCreate(path);
|
||||
|
Reference in New Issue
Block a user