15 lines
307 B
C#
15 lines
307 B
C#
using System;
|
|
|
|
namespace FlappyBird.Core
|
|
{
|
|
public interface IScoreManager
|
|
{
|
|
int CurrentScore { get; }
|
|
int BestScore { get; }
|
|
event Action<int> OnScoreChanged;
|
|
event Action<int> OnBestScoreChanged;
|
|
void AddScore(int points);
|
|
void ResetScore();
|
|
}
|
|
}
|