Files
SoulliesOfficial 9b1b5ca93f initial
2025-10-03 00:02:43 -04:00

12 lines
476 B
C#

namespace Lean.Pool
{
/// <summary>If you implement this interface in a component on your pooled prefab, then the OnSpawn and OnDespawn methods will be automatically called when the associated LeanGameObjectPool.Notification = PoolableInterface.</summary>
public interface IPoolable
{
/// <summary>Called when this poolable object is spawned.</summary>
void OnSpawn();
/// <summary>Called when this poolable object is despawned.</summary>
void OnDespawn();
}
}