Exemple #1
0
    public override SkillInputData GetSkillInputData(SkillCategory category)
    {
        SkillNode head = null;

        if (m_SkillCategoryDict.TryGetValue(category, out head))
        {
            IShooterSkill ss = m_SkillManager.GetSkillById(head.SkillId);
            if (ss != null)
            {
                SkillInputData data = new SkillInputData();
                data.castRange         = ss.GetSkillCastRange();
                data.targetChooseRange = ss.GetTargetChooseRange();
                return(data);
            }
        }
        return(null);
    }