private void catchCoin(GameObject coin) { CoinController coinController = coin.GetComponent <CoinController>(); coinSound.Play(); rings += coinController.getCoinValue(); Destroy(coin); }
private void catchCoin(GameObject coin) { CoinController coinController = coin.GetComponent <CoinController>(); coinSound.Play(); rings += coinController.getCoinValue(); Destroy(coin); }