I'm trying to make a save system for the game. I want to read data from more than one script and throw this data into a json file.
Tried something like this :
data = new PlayerData(_playerExperience.currentLevel, _playerExperience.currentExperience,
_enemyValueSet.enemyToSpawn, _playerAttack.playerDamage);```
But I can't reach any of the data.



