17 lines
571 B
C#
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();
|
|
}
|
|
} |