DerangedSenators / copsandrobbers

2D Multiplayer Cops and Robbers Game made with Unity for the Aston University Team project module
https://www.copsandrobbers.co.uk
Apache License 2.0
6 stars 5 forks source link

Optimise code in WeaponManager and PlayerHealth #174

Closed hsravat-4590 closed 3 years ago

hsravat-4590 commented 3 years ago

I've simplified the sound code in WeaponManager and condensed enableComponents and disableComponents into one method for PlayerHealth

hsravat-4590 commented 3 years ago

PlayerMovement audio can potentially be optimised in the same way as WeaponManager

Once I've finished with Rounds, I'll do that

hsravat-4590 commented 3 years ago

PlayerMovement audio can potentially be optimised in the same way as WeaponManager With PlayerAttack, there are two sources and the optimisation works around that. With PlayerMovement, there is only one so those optimisations are not necessary.