using UnityEngine;
namespace Pooling
{
///
/// Interface for poolable objects that need to reference their parent pool.
/// Implement this interface on objects that need to return themselves to their pool.
///
/// The type of pool component
public interface IPoolableWithReference : IPoolable where T : Component
{
///
/// Sets the parent pool for this object
///
/// The pool this object belongs to
void SetPool(T pool);
}
}