You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
973 B
28 lines
973 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
|
|
public class DataManager : Singleton<DataManager> |
|
{ |
|
DataScriptable dataPath; |
|
public DataLanguage dataLanguage = new DataLanguage(); |
|
public DataItem dataItem = new DataItem(); |
|
public DataSkill dataSkill = new DataSkill(); |
|
public DataMonster dataMonster = new DataMonster(); |
|
public DataMonsterAppear dataMonsterAppear = new DataMonsterAppear(); |
|
public DataDungeon dataDungeon = new DataDungeon(); |
|
|
|
public void Init() |
|
{ |
|
if (dataPath == null) |
|
{ |
|
dataPath = Resources.Load("CSV/DataPath", typeof(ScriptableObject)) as DataScriptable; |
|
|
|
dataLanguage.Initialized(dataPath.language); |
|
dataItem.Initialized(dataPath.item); |
|
dataSkill.Initialized(dataPath.skill); |
|
dataMonster.Initialized(dataPath.monster); |
|
dataMonsterAppear.Initialized(dataPath.monsterAppear); |
|
} |
|
} |
|
}
|
|
|