// Token: 0x06000B82 RID: 2946 RVA: 0x000324B4 File Offset: 0x000306B4
 public void SetSkillOverride(object source, SkillDef skillDef, GenericSkill.SkillOverridePriority priority)
 {
     GenericSkill.SkillOverride skillOverride = new GenericSkill.SkillOverride(source, skillDef, priority);
     if (this.FindSkillOverrideIndex(ref skillOverride) == -1)
     {
         HGArrayUtilities.ArrayAppend <GenericSkill.SkillOverride>(ref this.skillOverrides, ref skillOverride);
         this.PickCurrentOverride();
     }
 }
        // Token: 0x06000B83 RID: 2947 RVA: 0x000324EC File Offset: 0x000306EC
        public void UnsetSkillOverride(object source, SkillDef skillDef, GenericSkill.SkillOverridePriority priority)
        {
            GenericSkill.SkillOverride skillOverride = new GenericSkill.SkillOverride(source, skillDef, priority);
            int num = this.FindSkillOverrideIndex(ref skillOverride);

            if (num != -1)
            {
                HGArrayUtilities.ArrayRemoveAtAndResize <GenericSkill.SkillOverride>(ref this.skillOverrides, num, 1);
                this.PickCurrentOverride();
            }
        }
 // Token: 0x06000B81 RID: 2945 RVA: 0x00032478 File Offset: 0x00030678
 private int FindSkillOverrideIndex(ref GenericSkill.SkillOverride skillOverride)
 {
     for (int i = 0; i < this.skillOverrides.Length; i++)
     {
         if (this.skillOverrides[i].Equals(skillOverride))
         {
             return(i);
         }
     }
     return(-1);
 }