Skip to content
Snippets Groups Projects
Commit ef3b7f20 authored by Audino723's avatar Audino723
Browse files

fix bug

parent d7bcdfc0
Branches
Tags
No related merge requests found
......@@ -11,7 +11,13 @@ public class PlayerDataManager : MonoBehaviour
private PlayerData data3;
public List<bool> availableSlot = new List<bool>() { false, false, false };
void Awake() {
void Awake()
{
data0 = FileHandler.ReadFromJSONPrefs<PlayerData>("PlayerData0.json");
if (data0 == null)
{
data0 = new PlayerData();
}
data1 = FileHandler.ReadFromJSONPrefs<PlayerData>("PlayerData1.json");
if (data1 == null) {
data1 = new PlayerData();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment