Optimization and Documentation
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Services {
|
||||
private int score = 0;
|
||||
public int Score => this.score;
|
||||
public event Action<int> OnScoreChanged;
|
||||
public void ScoreCheck(int value) {
|
||||
public void AddScore(int value) {
|
||||
this.score += value;
|
||||
|
||||
OnScoreChanged?.Invoke(this.score);
|
||||
|
||||
Reference in New Issue
Block a user