private static void GetAbility() { EditorDBManager.Init(); abilityList = EditorDBManager.GetAbilityList(); if (Application.isPlaying) { return; } List <int> abilityIDList = EditorDBManager.GetAbilityIDList(); for (int i = 0; i < instance.unavailableIDList.Count; i++) { if (!abilityIDList.Contains(instance.unavailableIDList[i])) { instance.unavailableIDList.RemoveAt(i); i -= 1; } } }