Implement Bombs
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
using System;
|
||||
using Services.Interfaces;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Services {
|
||||
public class ScoreService : IScoreService {
|
||||
private int score = 0;
|
||||
public int Score => this.score;
|
||||
public event Action<int> OnScoreChanged;
|
||||
public void ScoreCheck(int value) {
|
||||
this.score += value;
|
||||
|
||||
OnScoreChanged?.Invoke(this.score);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user