Attach functionality to data?

Try casting to your game mode to grab the variables.