Example #1
0
        private void OnFire()
        {
            this._firingTime = -1f;

            bool hasMissile = !string.IsNullOrEmpty(this._skill.missile);

            if (hasMissile)
            {
                Missile missile = this.owner.battle.CreateMissile(this._skill.missile, this.owner.PointToWorld(this.owner.firingPoint), this.owner.property.direction);
                missile.Emmit(this._skill.id, this._skill.property.lvl, this.owner, this._target, this._targetPoint);
            }
            else
            {
                this.BeginBuff(this._skill, this.owner, this._target, this._targetPoint);
            }
        }
Example #2
0
        private void CreateMissile(Bio target)
        {
            Missile missile = this._buff.battle.CreateMissile(this._buff.extra_s[0], this._buff.caster.PointToWorld(this._buff.caster.firingPoint), this._buff.caster.property.direction);

            missile.Emmit(this._buff.extra_s[1], 0, this._buff.caster, target, Vec3.zero);
        }