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();
    }
}