Sign In Register

How can we help you today?

Start a new topic

Saving Player Data as a Json

I need help with using events to and cloud code to save a json on player data with unity. This is an example of the json:


 

{
"isLevelActive": [
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false
  ],
  "highScores": [
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
  ],
  "stars": [
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
  ],
  "colorBoosterCount": 5,
  "hammerBoosterCount": 5,
  "firecrackerBoosterCount": 5,
  "colorChangeBoosterCount": 5,
  "currentLevel": 0,
  "startBoosterColorBombCount": 0,
  "startBoosterAdjacentBombCount": 5,
  "startBoosterColumnBombCount": 5,
  "isWinner": false,
  "extraLives": 0,
  "spinTicket": 1,
  "highScoreLevel": 1
}

 

Login to post a comment