



- Set a Property, “Score”
- In “Start()” method,
- Get “Text” component to “scoreTextUI”
- Create “UpdateScoreTextUI()”
- create “scoreStr” string variable like a temporary bowl to keep “score”
- put “scoreStr” into “scoreTextUI” by using “Text.text”



- Add scoreTextUI
- in case of “GamePlay”
- set the score to 0 by setting the Property of “GameScore” class


- Create “BackGroundMusic” GameObject from EmptyGameObject
- Add “Audio Source” to “BackGroundMusic”
- Add “BackGroundMusic” to “Audio Source”

- Add “Audio Source” to “Player”
- Add “Laser” sound to “Audio Source”

- Add “audioSource” variable of “AudioSource” Class to use Audio Source attached to GameObject this script is attached to
- In “Start()” method,
- Get “Audiosource” component to “audioSource”
- In “Update()”
- add “audioSource.Play()” to play the laser sound when Space Bar is pressed

- Add “Audio Source” to “Explosion” Prefab
- Add “Explosion” sound to “Audio Source”
- For Prefab,
- No need to create or configure a script
- when Prefab appears in the scene, “Audio Source” is activated with “Play On Wake” on