File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ private int _score = 100;
63
63
[Save ]
64
64
private void Save (DataObject data )
65
65
{
66
- dataObject .Add (" Score" , new DataElement (_score ));
66
+ data .Add (" Score" , new DataElement (_score ));
67
67
}
68
68
69
69
[Load ]
70
70
private void Load (DataObject data )
71
71
{
72
- _score = dataObject .Get <DataElement >(" Score" ).ToObject <int >();
72
+ _score = data .Get <DataElement >(" Score" ).ToObject <int >();
73
73
}
74
74
```
75
75
* 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
111
111
![ Package Manager] ( /Assets/Kekser/Screenshots/package_manager.png )
112
112
### License
113
113
114
- This library is under the MIT License.
114
+ This library is under the MIT License.
You can’t perform that action at this time.
0 commit comments