コード例 #1
0
ファイル: TickData.cs プロジェクト: ConstTeam/HeroProject
        private void SetFunction(int skillInstId)
        {
            SetEffect();
            List <SkillData> lstSkillDatas = m_SkillDataSon.GetSkillDataList();;

            for (int i = 0, len = lstSkillDatas.Count; i < len; ++i)
            {
                ChangeProperty.Change(lstSkillDatas[i], _CharHandler, _AimCharHandler, _iAimCharIndex, this, skillInstId);
            }
        }
コード例 #2
0
ファイル: SkillBullet.cs プロジェクト: ConstTeam/HeroProject
        public override void DoSkill(SkillDataSon skillDataSon, CharHandler charHandler, List <CharHandler> targets, int skillInstId)
        {
            List <SkillData> skillDatas = skillDataSon.GetSkillDataList();

            for (int i = 0; i < targets.Count; ++i)
            {
                CharHandler aimHandler = targets[i];
                BulletBase  bullet     = charHandler.m_CharEffect.GetSkillBulletObj(charHandler.m_CharData.m_iCurSkillID).GetComponent <BulletBase>();
                bullet.Shoot(charHandler, targets[i], () => { ChangeProperty.Change(skillDatas[0], charHandler, aimHandler, 0); });
            }
        }
コード例 #3
0
        public override void DoSkill(SkillDataSon skillDataSon, CharHandler charHandler, List <CharHandler> targets, int skillInstId)
        {
            List <SkillData> skillDatas = skillDataSon.GetSkillDataList();

            for (int i = 0; i < targets.Count; ++i)
            {
                for (int j = 0; j < skillDatas.Count; ++j)
                {
                    ChangeProperty.Change(skillDatas[j], charHandler, targets[i], i);
                }
            }
        }