Update Project
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user