//load the data from db prefabs private static void LoadPrefab() { DamageTableDB db = DamageTableDB.LoadDB(); armorTypeList = db.armorTypeList; damageTypeList = db.damageTypeList; }
public static void Init() { if (instance != null) { return; } instance = LoadDB1(); }
public static void LoadDamageTable() { damageTableDB = DamageTableDB.LoadDB(); UpdateLabel_DamageTable(); TDSEditorWindow.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel); TDSEditorInspector.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel); }
public static void CopyFromOldDB() { Init(); if (instance.copied) { return; } instance.copied = true; instance.armorTypeList = DamageTableDB.GetArmorTypeList1(); instance.damageTypeList = DamageTableDB.GetDamageTypeList1(); }
public static void SetDamageDB(DamageTableDB db, string[] dmgLabel, string[] armLabel) { damageTableDB = db; damageTypeLabel = dmgLabel; armorTypeLabel = armLabel; }
public static void SetDamageDB(DamageTableDB db, string[] dmgLabel, string[] armLabel) { damageTableDB=db; damageTypeLabel=dmgLabel; armorTypeLabel=armLabel; }
public static void LoadDamageTable() { damageTableDB=DamageTableDB.LoadDB(); UpdateLabel_DamageTable(); TDSEditorWindow.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel); TDSEditorInspector.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel); }