Skip to content

Commit c981b17

Browse files
authored
Update README.md
1 parent 17217c7 commit c981b17

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Configs
2-
Scriptable Object Configs for data storage
2+
Load Scriptable Objects via code
33

44
## Usage
55

6-
Creating Config:
6+
Creating ScriptableObject:
77

88
```csharp
99
[CreateAssetMenu(menuName = "Game/Configs/Player")]
10-
public class PlayerConfig : Config
10+
public class PlayerConfig : ScriptableObject
1111
{
1212
[SerializeField] private float _startHealth = 100f;
1313

@@ -17,7 +17,7 @@ Creating Config:
1717

1818
Now you need to create an asset and put it in Resources folder
1919

20-
Get Data from Config:
20+
Get Data from ScriptableObject:
2121

2222
```csharp
2323
public class Player : MonoBehaviour
@@ -26,7 +26,7 @@ Get Data from Config:
2626

2727
private void Awake()
2828
{
29-
_health = Config.Get<PlayerConfig>().StartHealth;
29+
_health = Storage.Get<PlayerConfig>().StartHealth;
3030
}
3131
}
3232
```

0 commit comments

Comments
 (0)