public static void LoadAbility() { abilityDB = Ability_DB.LoadDB(); for (int i = 0; i < abilityDB.abilityList.Count; i++) { if (abilityDB.abilityList[i] != null) { //abilityDB.abilityList[i].ID=i; abilityIDList.Add(abilityDB.abilityList[i].ID); } else { abilityDB.abilityList.RemoveAt(i); i -= 1; } } UpdateLabel_Ability(); TDSEditorWindow.SetAbilityDB(abilityDB, abilityIDList, abilityLabel); TDSEditorInspector.SetAbilityDB(abilityDB, abilityIDList, abilityLabel); }