Exemplo n.º 1
0
 private void CoinCollected()
 {
     //Update score with collected coin
     mainMenu.AddScore(coinIndex);
     coinAnimator.SetBool("collected", true);
     //sound effect
     SoundManager.instance.PlayPitched(collectSFX, 0.9f, 1.1f);
     //Remove Coin from game
     col.enabled = false;
 }