private void Start() { lvHouseData = SaveManager.LevelLoad <LVHouseData>(1); Set_StoreLv(); StartCoroutine(CreateNpc()); }
void GetExp() { lvHouseData.exp++; if (lvHouseData.exp >= lvHouseData.nextExp) { lvHouseData = SaveManager.LevelLoad <LVHouseData>(Convert.ToInt32(lvHouseData.lv) + 1); Set_StoreLv(); } }
private void Load() { var path = EditorUtility.OpenFilePanel("열기", Application.dataPath + "/Resources/Levels", "json"); if (!string.IsNullOrEmpty(path)) { string json = File.ReadAllText(path); storedata = JsonUtility.FromJson <LVHouseData>(json); Draw(); } }