23 lines
664 B
C#
23 lines
664 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BubbleBullet : Bullet
|
|
{
|
|
public override void OnSpawn(Vector3 recoil, float recoilCount)
|
|
{
|
|
base.OnSpawn(recoil, recoilCount);
|
|
type = BulletType.BubbleBullet;
|
|
BulletInfo bulletInfo = GameManager.Ins.BulletInfos[type][1];
|
|
damage = bulletInfo.Damage;
|
|
deToughness = bulletInfo.DeToughness;
|
|
}
|
|
public override void OnApplyDamage(Damagable damagable)
|
|
{
|
|
// 造成伤害
|
|
damagable.ApplyDamage(damage, ownerIndex, handlingHit.point, transform);
|
|
|
|
RigidbodyComponent.velocity = Vector3.zero;
|
|
}
|
|
}
|