diff --git a/README.md b/README.md
index b7ac043..6964e6f 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,11 @@
Gameframe.StatSheet 👋
+
Statsheet system for Role Playing Game style character stats
@@ -42,7 +47,7 @@ Statsheet system for Role Playing Game style character stats
#### Using UnityPackageManager (for Unity 2019.3 or later)
Open the package manager window (menu: Window > Package Manager)
Select "Add package from git URL...", fill in the pop-up with the following link:
-https://github.com/coryleach/UnityStatSheet.git#0.2.5
+https://github.com/coryleach/UnityStatSheet.git#0.2.6
#### Using UnityPackageManager (for Unity 2019.1 or later)
@@ -50,7 +55,7 @@ Find the manifest.json file in the Packages folder of your project and edit it t
```js
{
"dependencies": {
- "com.gameframe.statsheet": "https://github.com/coryleach/UnityStatSheet.git#0.2.5",
+ "com.gameframe.statsheet": "https://github.com/coryleach/UnityStatSheet.git#0.2.6",
...
},
}
diff --git a/Runtime/StatModel.cs b/Runtime/StatModel.cs
index 5e0cd10..fa965f6 100644
--- a/Runtime/StatModel.cs
+++ b/Runtime/StatModel.cs
@@ -42,6 +42,7 @@ private set
public delegate void StatModelDelegate();
public event StatModelDelegate OnBecameDirty;
+ public event StatModelDelegate OnTotalsUpdated;
protected ListStatSet _statTotals = new ListStatSet();
public IStatSet StatTotals => _statTotals;
@@ -119,6 +120,7 @@ public virtual void UpdateTotals(bool checkDirty = false)
}
IsDirty = false;
+ OnTotalsUpdated?.Invoke();
}
#region IReadonlyStatSet Implementation
diff --git a/package.json b/package.json
index 8e0838d..08cc9a2 100644
--- a/package.json
+++ b/package.json
@@ -1 +1,18 @@
-{"githubUrl":"","name":"com.gameframe.statsheet","displayName":"Gameframe.StatSheet","repositoryName":"UnityStatSheet","version":"0.2.5","description":"Statsheet system for Role Playing Game style character stats","type":"library","keywords":[],"author":{"name":"Cory Leach","email":"cory.leach@gmail.com","url":"https://github.com/coryleach","twitter":"coryleach","github":"coryleach","kofi":""}}
\ No newline at end of file
+{
+ "githubUrl": "",
+ "name": "com.gameframe.statsheet",
+ "displayName": "Gameframe.StatSheet",
+ "repositoryName": "UnityStatSheet",
+ "version": "0.2.6",
+ "description": "Statsheet system for Role Playing Game style character stats",
+ "type": "library",
+ "keywords": [],
+ "author": {
+ "name": "Cory Leach",
+ "email": "cory.leach@gmail.com",
+ "url": "https://github.com/coryleach",
+ "twitter": "coryleach",
+ "github": "coryleach",
+ "kofi": ""
+ }
+}
\ No newline at end of file