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