namespace FlappyBird.Core { /// /// Implement on any Component that is managed by the object pool. /// public interface IPoolable { /// Called by the pool just before the object is handed out. void OnSpawn(); /// Called by the pool just after the object is returned. void OnDespawn(); } }