Exemple #1
0
        //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();
 }
Exemple #3
0
        public static void LoadDamageTable()
        {
            damageTableDB = DamageTableDB.LoadDB();
            UpdateLabel_DamageTable();

            TDSEditorWindow.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel);
            TDSEditorInspector.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel);
        }
Exemple #4
0
        public static void CopyFromOldDB()
        {
            Init();
            if (instance.copied)
            {
                return;
            }

            instance.copied         = true;
            instance.armorTypeList  = DamageTableDB.GetArmorTypeList1();
            instance.damageTypeList = DamageTableDB.GetDamageTypeList1();
        }
Exemple #5
0
 public static void SetDamageDB(DamageTableDB db, string[] dmgLabel, string[] armLabel)
 {
     damageTableDB   = db;
     damageTypeLabel = dmgLabel;
     armorTypeLabel  = armLabel;
 }
Exemple #6
0
 public static void SetDamageDB(DamageTableDB db, string[] dmgLabel, string[] armLabel)
 {
     damageTableDB=db;
     damageTypeLabel=dmgLabel;
     armorTypeLabel=armLabel;
 }
Exemple #7
0
        public static void LoadDamageTable()
        {
            damageTableDB=DamageTableDB.LoadDB();
            UpdateLabel_DamageTable();

            TDSEditorWindow.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel);
            TDSEditorInspector.SetDamageDB(damageTableDB, damageTypeLabel, armorTypeLabel);
        }