private void Start() { _playerMoneyInLevel = PlayerMoneyInLevel.Instance; if (_playerMoneyInLevel == null) { Debug.LogError("Error: Instance of 'PlayerMoneyInLevel' not set."); } else { _playerMoneyInLevel.OnMoneyChange += DisplayNewMoneyValue; } }
private void Awake() { CurrentMoney = 0; Instance = this; }