Cheers for goals

Before moving on, let's add some cheer! If we add an audio clip (Audio Source) to the goal panel and set it to play on awake, we can provide audio feedback in addition to the visual. We have provided a cheer.mp3 audio file to use:

  1. Select GoalCanvas.
  2. Add Component | Audio Source.
  3. Drag the cheer clip (in Assets/BallGameArt/Sounds) onto the AudioClip slot.
  4. Ensure that Play on Awake is checked and Loop is not checked.

Now the game is even more exciting!

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.