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