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);
        }
    }
}