public void GetInput(GameObject skillUser, KeyCode input) { SkillTree targetSkillTree = mGo2Skills[skillUser].Find(skillTree => skillTree.ShortCut == input); if (targetSkillTree != null) { targetSkillTree.Use(); } }
public void GetInput(GameObject skillUser, KeyCode input) { SkillTree targetSkillTree = mGo2Skills[skillUser].Find(skillTree => skillTree.ShortCut == input); if (targetSkillTree != null) { targetSkillTree.Use(AoiService.GetEntity(skillUser.transform)); } }