Download

Best place to store?

I want to store the amount of kills the player has but where is the best place to do this? The Player State or the Game State?

Im unsure because i read this for game state - the GameState would keep track of the current amount of kills of each Player and/or Team!
But in the shooter example they store the player kills in the Player State.

A player state contains player specific information, the game state contains information about the match. So on a player state you would store kills, deaths, score etc and on the game state you can store how many tickets are left, how many rounds remaining etc.

ah i see thanks