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!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.145.114