13 lines
406 B
C#
13 lines
406 B
C#
namespace FlappyBird.Core
|
|
{
|
|
/// <summary>
|
|
/// Implement on any Component that is managed by the object pool.
|
|
/// </summary>
|
|
public interface IPoolable
|
|
{
|
|
/// <summary>Called by the pool just before the object is handed out.</summary>
|
|
void OnSpawn();
|
|
/// <summary>Called by the pool just after the object is returned.</summary>
|
|
void OnDespawn();
|
|
}
|
|
} |