File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2323## How To Install
2424### Add the line below to ` Packages/manifest.json `
2525
26- for version ` 1.0.0 `
26+ for version ` 1.0.1 `
2727``` csharp
28- " com.wolf-package.game-data" : " https://github.com/wolf-package/game-data-unity.git#1.0.0 " ,
28+ " com.wolf-package.game-data" : " https://github.com/wolf-package/game-data-unity.git#1.0.1 " ,
2929```
3030## Use
3131
32- - Initialize data when loading the game: ` GameData.Init() `
32+ - Initialize data when loading the game: ` GameData.Init() ` Data will be init (Load Data) automatically when game starts
3333- Change Profile: ` GameData.ChangeProfile(int profile) `
34- - Load Data: ` GameData.Load() ` Load all data from file for game, data will be loaded automatically when starting the game
34+ - Load Data: ` GameData.Load() ` Load all data from file for game
3535- Get Data: ` GameData.Get("KEY", valueDefault); ` Use similar to PlayerPrefs
3636- Set Data: ` GameData.Set("KEY", value); ` Use similar to PlayerPrefs
3737- Save Data: ` GameData.Save() ` Save data to file (You should save when pausing or quitting the game)
Original file line number Diff line number Diff line change 22 "name" : " com.wolf-package.game-data" ,
33 "displayName" : " UnityCommon-GameData" ,
44 "description" : " System data for game unity" ,
5- "version" : " 1.0.0 " ,
5+ "version" : " 1.0.1 " ,
66 "unity" : " 2021.3" ,
77 "category" : " virtuesky" ,
88 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments