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

Make Money Counts NetworkBehaviour #128

Closed hsravat-4590 closed 1 year ago

hsravat-4590 commented 3 years ago

Currently Money is held client-side making it difficult and insecure to check which team has effectively won

hsravat-4590 commented 3 years ago

We can fix this using [Command] call as they are executed on the server. We can add [Command] Methods to getters and setters for the money. It can also help with security as you can check if teams are correct and no illegal money is being added