As the title suggests, I am trying to accumulate points, and if the player reaches the exit and ends the game. The the points gathered during the game by picking up items. Will be displayed.
Though I am not sure where is best to store these points? Should they be stored in the game mode or player character?
And when the player reaches the exit point, whats the best way to access these points? I could do cast to, but any better way? Interface perhaps?
Both are equality valid when its to a persistent class. What you could do is place the code to add points in a component and use that in what ever class you need.
If single you can just count and store on the character or controller.
If multiplayer you only want that action of picking up to happen on the server and replicate down to clients/sims. So on server pick up you get the point value for item and pass it to either a player state event or the GM.
I’d prefer Player State. If the GM needs the info then after the Player State tallies a new total it can pass that new total to the GM.