Skip to content

Commit 3a8723d

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 0ff2e20 + a218f00 commit 3a8723d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ private int _score = 100;
6363
[Save]
6464
private void Save(DataObject data)
6565
{
66-
dataObject.Add("Score", new DataElement(_score));
66+
data.Add("Score", new DataElement(_score));
6767
}
6868

6969
[Load]
7070
private void Load(DataObject data)
7171
{
72-
_score = dataObject.Get<DataElement>("Score").ToObject<int>();
72+
_score = data.Get<DataElement>("Score").ToObject<int>();
7373
}
7474
```
7575
*These attributes are also usable on static fields and methods.*
@@ -111,4 +111,4 @@ https://github.com/DerKekser/unity-save-system.git?path=Assets/Kekser/SaveSystem
111111
![Package Manager](/Assets/Kekser/Screenshots/package_manager.png)
112112
### License
113113

114-
This library is under the MIT License.
114+
This library is under the MIT License.

0 commit comments

Comments
 (0)