public bool RegisterItem(IStatisticHandler item) { if (_items.Any(it => it.Type == item.Type)) { return(false); } item.StateChanged += OnItemStateChanged; _items.Add(item); return(true); }
private void Start() { _score = Arcanoid.Instance.Statistics.Get(GameConsts.StatisticItems.Score); _lives = Arcanoid.Instance.Statistics.Get(GameConsts.StatisticItems.Lives); }