Skip to content

Commit 17217c7

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

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
@@ -9,9 +9,9 @@ Creating Config:
99
[CreateAssetMenu(menuName = "Game/Configs/Player")]
1010
public class PlayerConfig : Config
1111
{
12-
[SerializeField] private float _startPlayerHealth = 100f;
12+
[SerializeField] private float _startHealth = 100f;
1313

14-
public float StartPlayerHealth => _startPlayerHealth;
14+
public float StartHealth => _startHealth;
1515
}
1616
```
1717

@@ -26,7 +26,7 @@ Get Data from Config:
2626

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

0 commit comments

Comments
 (0)