Files
2026-03-20 13:04:43 +02:00

17 lines
571 B
C#

namespace FlappyBird.Gameplay.Pipes
{
/// <summary>
/// Contract for the pipe-spawning service.
/// </summary>
public interface IPipeSpawner
{
/// <summary>
/// Called every frame (from a MonoBehaviour Tick).
/// Accumulates delta time and triggers a spawn when the interval elapses.
/// </summary>
/// <param name="deltaTime">Time.deltaTime supplied by the caller.</param>
void Tick(float deltaTime);
/// <summary>Resets the internal spawn timer.</summary>
void ResetTimer();
}
}