コード例 #1
0
        private List <UnitInterface> ApplySkillEffect(DMGRegistry dmgRegistry)
        {
            possibleTargetList.Clear();
            possibleTargetList.Add(dmgRegistry.target);

            int skillLength = dmgRegistry.unitStats.skills.Length;

            if (dmgRegistry.unitStats.skills != null && dmgRegistry.unitStats.skills.Length > 0)
            {
                for (int s = 0; s < skillLength; s++)
                {
                    BaseSkill skillWorker = _gameSkillMapper.GetSkill(dmgRegistry.unitStats.skills[s].id);
                    if (skillWorker != null)
                    {
                        possibleTargetList.AddRange(skillWorker.Execute(dmgRegistry.unitStats.skills[s], possibleTargetList, dmgRegistry, _mapBlockerManager, _mapGrid));
                    }
                }
            }

            return(possibleTargetList);
        }