public void OnPointerClick(PointerEventData eventData) { MinionIdentity minionIdentity = skillsScreen.CurrentlySelectedMinion as MinionIdentity; if ((UnityEngine.Object)minionIdentity != (UnityEngine.Object)null) { MinionResume component = minionIdentity.GetComponent <MinionResume>(); if (DebugHandler.InstantBuildMode && component.AvailableSkillpoints < 1) { component.ForceAddSkillPoint(); } MinionResume.SkillMasteryConditions[] skillMasteryConditions = component.GetSkillMasteryConditions(skillID); bool flag = component.CanMasterSkill(skillMasteryConditions); if ((UnityEngine.Object)component != (UnityEngine.Object)null && !component.HasMasteredSkill(skillID) && flag) { component.MasterSkill(skillID); skillsScreen.RefreshAll(); } } }