From 6d8f15c1e63dd27122dfcf87ce158fd7e5127089 Mon Sep 17 00:00:00 2001 From: DucNV Date: Wed, 31 Jul 2024 14:08:20 +0700 Subject: [PATCH] - update version --- README.md | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 332a203..32f71bb 100644 --- a/README.md +++ b/README.md @@ -23,15 +23,15 @@ ## How To Install ### Add the line below to `Packages/manifest.json` -for version `1.0.0` +for version `1.0.1` ```csharp -"com.wolf-package.game-data":"https://github.com/wolf-package/game-data-unity.git#1.0.0", +"com.wolf-package.game-data":"https://github.com/wolf-package/game-data-unity.git#1.0.1", ``` ## Use -- Initialize data when loading the game: `GameData.Init()` +- Initialize data when loading the game: `GameData.Init()` Data will be init (Load Data) automatically when game starts - Change Profile: `GameData.ChangeProfile(int profile)` -- Load Data: `GameData.Load()` Load all data from file for game, data will be loaded automatically when starting the game +- Load Data: `GameData.Load()` Load all data from file for game - Get Data: `GameData.Get("KEY", valueDefault);` Use similar to PlayerPrefs - Set Data: `GameData.Set("KEY", value);` Use similar to PlayerPrefs - Save Data: `GameData.Save()` Save data to file (You should save when pausing or quitting the game) diff --git a/package.json b/package.json index d0d72b8..6908596 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "com.wolf-package.game-data", "displayName": "UnityCommon-GameData", "description": "System data for game unity", - "version": "1.0.0", + "version": "1.0.1", "unity": "2021.3", "category": "virtuesky", "license": "MIT",