private void setAbilityActive(abilitybutton a)
 {
     if (a.getAbilityLevel() <= 0)
     {
         a.MakeInActive();
     }
     else
     {
         a.MakeActive();
     }
 }
 private void ability3_tree()
 {
     if (a3.getAbilityLevel() <= 2)
     {
         a3.MakeActive();
     }
     else
     if (a3.getAbilityLevel() <= 4 && player.level >= 6)
     {
         a3.MakeActive();
     }
     else
     if (a3.getAbilityLevel() <= 5 && player.level >= 10)
     {
         a3.MakeActive();
     }
     else
     {
         a3.MakeInActive();
     }
 }