Пример #1
0
 private void OnWrongItemRecycled(BurnableItemRecycledEvent obj)
 {
     _soundPlayer.PlayOneShot(_wrongItem);
 }
Пример #2
0
 private void OnBurnedItemRecycled(BurnableItemRecycledEvent obj)
 {
     _extraItems++;
 }
Пример #3
0
        private void OnWrongItemRecycled(BurnableItemRecycledEvent obj)
        {
            var text = Instantiate(_textPrefab, transform);

            text.Initialize($"You recycled a {obj.Item.Name}. You're not as smart as you think..", _movingTextTime);
        }