Hello :)
Me and friends are making our first multiplayer game where up to 4 players battle against each other in matchs which can have multiple rounds. As a multiplayer Service we are using Photon.
We want to gather, for example, accuracy data but it doesn't make sense to send the fired shots to the PlayFab after every shot - this would cause a lot of network traffic. The stats are first gathered locally during the match and sent to PlayFab when the match ends. The Cloud Script in the PlayFab backend then calculates the accuracy based on fired and hit shots and updates the player's accuracy statistic and other statistics meant to be used in leaderboards.
Is this a good approach? Do you have any tips how to prevent cheating with these kind of statistics?