In this lecture some code is refactored into a new method called PlayBlockDestroySFX(). One of the lines that is being refactored it the call to AddToScore. I think this wasn’t the intention, as it isn’t part of playing the clip.
1 Like
Hi Tauq,
Good catch. Actually, AddToScore does not have anything to do with playing a sound, so this is definitely a flaw in the code. Fortunately, it’s not a bug. Feel free to create a new method for adding the score or move that line to an existing method where it makes more sense.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.