Esempio n. 1
0
        private void OnMoveComplete()
        {
            SyncEventHelper.HandleMissileComplete(this.rid, this.property.position, this.property.direction);

            this.ChangeState(FSMStateType.Idle);

            this.markToDestroy = true;

            if (this.target != null &&
                this.target.isDead)
            {
                return;
            }

            SkillData skillData = ModelFactory.GetSkillData(this._skillId);
            int       count     = skillData.buffs.Length;

            for (int i = 0; i < count; i++)
            {
                this.battle.CreateBuff(skillData.buffs[i], skillData.id, this._skillLvl, this.caster, this.target, this.targetPoint);
            }
        }