示例#1
0
    public override void Fire()
    {
        Bullet bullet = (Bullet)Instantiate(this.bullet, transform.position, Quaternion.identity);

        bullet.shooter = this;
        Vector3 dir = (target.transform.position - transform.position).normalized;

        bullet.direction = dir;
        bullet.damage    = baseDamage;
        bullet.AddEffect(new Slowness(0.5f));

        tracked.Remove(target);
        SelectTarget();
    }