Esempio n. 1
0
 void GetItem(Collider other)
 {
     _backgroundColor.SetBackgroundColor();
     _audioManager.PlayRandomSound(_audioManager.CatSounds);
     Destroy(Instantiate(_getItemEffect, other.transform.position, Quaternion.identity), 0.5f);
     Destroy(other.gameObject.transform.parent.gameObject);
     _gameManager.AddScore();
 }