public void StartLevel() { Coins = _gameManager.LevelController.CurrentLevel.LevelSettings.playerCoinsAmount; Health = _gameManager.LevelController.CurrentLevel.LevelSettings.playerHealthAmount; OnCoinsAmountChangedEvent?.Invoke(Coins); OnHealthAmountChangedEvent?.Invoke(Health); }
public void ChangeCoinsAmount(int coinsDelta) { Coins += coinsDelta; OnCoinsAmountChangedEvent?.Invoke(Coins); }