Example #1
0
 private void OnHeroLevelChange(PoolObjHandle <ActorRoot> hero, int level)
 {
     if (FogOfWar.enable)
     {
         SkillSlot skillSlot = hero.handle.SkillControl.GetSkillSlot(SkillSlotType.SLOT_SKILL_7);
         if (skillSlot != null)
         {
             skillSlot.SetSkillLevel(level);
         }
     }
 }