17 lines
471 B
C#
17 lines
471 B
C#
namespace FlappyBird.Gameplay.Bird
|
|
{
|
|
/// <summary>
|
|
/// Contract for the bird's physics and rotation logic.
|
|
/// Implementations must NOT be MonoBehaviours.
|
|
/// </summary>
|
|
public interface IBirdController
|
|
{
|
|
/// <summary>Called once per frame to update rotation based on current velocity.</summary>
|
|
void Tick();
|
|
|
|
/// <summary>Applies a configurable upward force impulse to the bird.</summary>
|
|
void Jump();
|
|
}
|
|
}
|
|
|