Beispiel #1
0
 private void AddScore()
 {
     score += 100;                       // Adds 100pts to score
     print("MAMMA MIA " + score + "pts.");
     SoundEffectBoard.PlayPointPickup(); // plays point audio
     Destroy(pickup);                    // destroys the game object on overlap
 }
 public void PowerUp()
 {
     print("Now we're movin!");
     camScroll.isPickedUp = true;        // tells CameraAutoScroll.cs that the bike is picked up
     cooldownBikePickup   = 1;           // sets cooldown
     SoundEffectBoard.PlayPointPickup(); // plays bike audio
     Destroy(pickup);                    // destroys the game object on overlap
 }