The first sound I added was the "sword unsheath" sound. I already had it assigned to the Unsheath storage variable, so all I needed was to put 3 lines of code in the right place, the one's starting with "this."
The first of the three lines gets the audiosource component that is attached to the player. The second one gets the sound from where it is stored in the variable. The third line plays it through the audiosource recognized by the first line.
I simply repeated this for the CrossbowEquip sound.
Next class I will add the attack and reload sounds.
No comments:
Post a Comment