AssetBase/Assets/FirstVillain/ObjectPool/Scripts/PoolItem.cs

21 lines
433 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Pool;
namespace FirstVillain.ObjectPool
{
public class PoolItem
{
public string Path { get; private set; }
public IObjectPool<GameObject> Pool { get; private set; }
public PoolItem(string path, ObjectPool<GameObject> pool)
{
Path = path;
Pool = pool;
}
}
}